diff options
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/python/runtime/_couscous.py | 5 | ||||
| -rw-r--r-- | src/main/resources/python/runtime/java/lang/Integer.py | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/resources/python/runtime/_couscous.py b/src/main/resources/python/runtime/_couscous.py new file mode 100644 index 0000000..0183f0b --- /dev/null +++ b/src/main/resources/python/runtime/_couscous.py @@ -0,0 +1,5 @@ +def _div_round_to_zero(a, b): + return -(-a // b) if (a < 0) ^ (b < 0) else a // b + +def _mod_round_to_zero(a, b): + return -(-a % b) if (a < 0) ^ (b < 0) else a % b
\ No newline at end of file diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py new file mode 100644 index 0000000..052f799 --- /dev/null +++ b/src/main/resources/python/runtime/java/lang/Integer.py @@ -0,0 +1,3 @@ +class Integer(object): + def parseInt(value): + return int(value) |
