summaryrefslogtreecommitdiff
path: root/progs/a738.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a738.py')
-rw-r--r--progs/a738.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a738.py b/progs/a738.py
new file mode 100644
index 0000000..27191c1
--- /dev/null
+++ b/progs/a738.py
@@ -0,0 +1,4 @@
+def round_num(n,m):
+ a = (n //m) * m
+ b = a + m
+ return (b if n - a > b - n else a) \ No newline at end of file