Skip to content

Commit 4e7e491

Browse files
author
Dhruv Singh
committed
Add spoj to the directory
-Add test problem solution
1 parent aafa135 commit 4e7e491

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spoj/test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
# http://www.spoj.com/problems/TEST/
3+
4+
nums = []
5+
num = 0
6+
while num != 42:
7+
num = int(input())
8+
if num != 42:
9+
nums.append(num)
10+
11+
print '\n'.join(map(str, nums))

0 commit comments

Comments
 (0)