about summary refs log tree commit diff
path: root/others
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-27 19:43:53 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-27 19:44:10 +0700
commit6f155876eee25e7db2b3080e0bf2a737d1201073 (patch)
tree85e0346e0485026fdd0ec6e9b965fd84e9970499 /others
parent91b5248c8b951d82f3c9a2deb6ac928cce553497 (diff)
downloadcp-6f155876eee25e7db2b3080e0bf2a737d1201073.tar.gz
Clean up
Diffstat (limited to 'others')
-rwxr-xr-xothers/153x/060.py7
-rw-r--r--others/volume1/016.pas12
2 files changed, 7 insertions, 12 deletions
diff --git a/others/153x/060.py b/others/153x/060.py
index bfbf0cc..66da821 100755
--- a/others/153x/060.py
+++ b/others/153x/060.py
@@ -2,10 +2,6 @@
 from fractions import Fraction
 
 
-def dec_div(n):
-    return n, l2, l5
-
-
 def decimal(fraction):
     a, b, l2, l5 = fraction.numerator, fraction.denominator, 0, 0
     if b == 1: return '{}\n'.format(a)
@@ -26,5 +22,4 @@ def decimal(fraction):
 
 
 with open('DECIMAL.INP') as fi, open('DECIMAL.OUT', 'w') as fo:
-    for line in fi:
-        fo.write(decimal(Fraction(*map(int, line.split()))))
+    for line in fi: fo.write(decimal(Fraction(*map(int, line.split()))))
diff --git a/others/volume1/016.pas b/others/volume1/016.pas
index e50eef0..510a029 100644
--- a/others/volume1/016.pas
+++ b/others/volume1/016.pas
@@ -11,12 +11,12 @@ begin
   repeat
     inc(i);
     while (j > 0) and
-    (k > 0) and
-    (s[i] > z[j]) do
-    begin
-      dec(j);
-      dec(k)
-    end;
+          (k > 0) and
+          (s[i] > z[j]) do
+      begin
+        dec(j);
+        dec(k)
+      end;
     inc(j);
     z[j] := s[i]
   until i = length(s);