diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-04-08 12:01:37 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-04-08 12:01:37 +0300 |
| commit | f634b6773930c200d3b4ad3430c29cf303e4b2ad (patch) | |
| tree | 5b07760e75d2fdd16cd52daa1fca85179308b4f5 /templates | |
| parent | 2aeb590a846982a09e96c15756175a616b8647c7 (diff) | |
moved to template dir
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/1.in | 0 | ||||
| -rw-r--r-- | templates/2.in | 0 | ||||
| -rw-r--r-- | templates/3.in | 0 | ||||
| -rw-r--r-- | templates/template.py | 11 |
4 files changed, 11 insertions, 0 deletions
diff --git a/templates/1.in b/templates/1.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/1.in diff --git a/templates/2.in b/templates/2.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/2.in diff --git a/templates/3.in b/templates/3.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/3.in diff --git a/templates/template.py b/templates/template.py new file mode 100644 index 0000000..8ca1098 --- /dev/null +++ b/templates/template.py @@ -0,0 +1,11 @@ +f = open('1.in', 'r') +o = open('1.out', 'w') + +t = int(f.readline().strip()) + +for i in range(t): + nk = f.readline().strip().split(' ') + n = int(nk[0]) + k = int(nk[1]) + + o.write(s) |
