submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s210428489
p00006
Runtime Error
line = raw_input() print line.reverse()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s526007596
p00006
Runtime Error
date=str(input()).reverse() print(date)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s157666293
p00006
Runtime Error
def main(): IN=input() if IN=='': break print(IN[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s487645918
p00006
Runtime Error
print(str[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s542104111
p00006
Runtime Error
print(str(input())[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s427555706
p00006
Runtime Error
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): ???return input()[::-1] if __name__ == '__main__': main()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s865028366
p00006
Runtime Error
print(input().reverse())
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s462978151
p00006
Runtime Error
while True: st=list(input()) if len(st)==0:break print("".join(reversed(st)))
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s586575619
p00006
Runtime Error
print(input()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s248878966
p00006
Runtime Error
print(input()[::-3]))
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s466365506
p00006
Runtime Error
import sys print(sys.stdin[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s873616100
p00006
Runtime Error
import sys print(sys.stdin[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s666101508
p00006
Runtime Error
import sys print(sys.stdin()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s241244556
p00006
Runtime Error
for i in range(1): print(input()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s036753976
p00006
Runtime Error
for i in range(1): print(input()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s512387945
p00006
Runtime Error
for i in range(1): print(input()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s830076296
p00006
Runtime Error
for i in range(1): print(input()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s389468376
p00006
Runtime Error
<?php fscanf(STDIN, "%s", $data); for($i = strlen($data); 0 <= $i; $i--){ $data2 .= $data[$i]; } echo $data2."\n";
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s867911562
p00006
Runtime Error
line = input() print(line[len(line),0,-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s961538650
p00006
Runtime Error
import math import itertools x = 100 for _ in itertools.repeat(None,int(input())): x = math.ceil(x*1.05) print(x*1000)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s814780641
p00006
Runtime Error
print input()[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s767305471
p00006
Runtime Error
import math import sys lines = input() print(lines.reverse())
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s986747825
p00006
Runtime Error
# coding=utf-8 sentence = input() sentence.__reversed__() print(sentence)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s199250397
p00006
Runtime Error
print(input().reversed)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s349527712
p00006
Runtime Error
import argparse def main(): l = [] parser = argparse.ArgumentParser() parser.add_argument("filename", help="The filename to be processed") args = parser.parse_args() if args.filename: with open(args.filename) as f: str = f.read() str = str[::-1] print(str) if __name__ == "__main__": main()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s441661847
p00006
Runtime Error
print(input[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s884658197
p00006
Runtime Error
string = input() size = len(string) st = [] for i in range(size): st.append(string(size-i)) print(st)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s957480496
p00006
Runtime Error
string = input("input data") size = len(string) st = [] for i in range(size): st.append(string(size-i)) print(st)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s389545778
p00006
Runtime Error
str1 = raw_input() print "".join(reversed(str1))
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s376148235
p00006
Runtime Error
s=input() print s[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s161602999
p00006
Runtime Error
text = raw_input("半角英数20文字まで入力: ") n = len(text) rev = [] for i in range(n): rev.append(text[(n-1)-i]) ans = ''.join(rev) print ans
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s428031146
p00006
Runtime Error
a = raw_input() [::-1] print a
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s314889029
p00006
Runtime Error
line = input() reversed(line) print line
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s518580840
p00006
Runtime Error
import sys for line in sys.stdin: print sorted(line, reversed=True)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s058339038
p00006
Runtime Error
import sys for line in sys.stdin: l = line.rstrip('\n').split('') l.reverse() print ''.join(l)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s386201449
p00006
Runtime Error
print raw input()[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s224063162
p00006
Runtime Error
# -*- coding: utf-8 -*- import sys for line in sys.stdin.readlines(): #List = map(int, line.strip().split()) seq = raw_input().strip() print seq[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s419857100
p00006
Runtime Error
s = raw_input() s.reverse() print s
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s334281918
p00006
Runtime Error
s = raw_input() s.reverse() print s[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s194448534
p00006
WA: Presentation Error
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys for s in sys.stdin: print s[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s112405225
p00006
WA: Presentation Error
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys s = sys.stdin.readline() print s[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s124383180
p00006
WA: Presentation Error
# -*- coding: utf-8 -*- import sys for s in sys.stdin: res = "" for i in range(len(s)): res += s[len(s)-i-1] print res
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s964662433
p00006
WA: Presentation Error
a=list(input()) a.reverse() for i in a: print(i,end='')
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s962723126
p00006
WA: Presentation Error
import sys print(sys.stdin.readline()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s688337181
p00006
WA: Presentation Error
import sys str = sys.stdin.readline() print(str[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s150003750
p00006
WA: Presentation Error
# coding: utf-8 # Here your code ! import sys for line in sys.stdin: print(line[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s320077735
p00006
WA: Presentation Error
# coding: utf-8 # Here your code ! import sys for line in sys.stdin: print(str(line[::-1]))
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s983816676
p00006
WA: Presentation Error
import sys for line in sys.stdin: print(line[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s931436363
p00006
WA: Presentation Error
import sys print(sys.stdin.readline()[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s051485073
p00006
WA: Presentation Error
words=input() for i in range(1,len(words)+1): print(words[-i],end="")
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s939560634
p00006
WA: Presentation Error
import sys def main(): for line in sys.stdin: print(line[::-1]) if __name__ == '__main__': main()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s833140541
p00006
WA: Presentation Error
import sys lines = [] for line in sys.stdin: print(line[::-1])
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s557729338
p00006
WA: Presentation Error
# coding: utf-8 line = input() for k in range(0, len(line)): print(line[len(line) - k - 1], end="")
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s091168095
p00006
WA: Presentation Error
a=[ i for i in input()] for i in reversed(range(len(a))): print(a[i],end="")
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s343492772
p00006
WA: Presentation Error
a = list(input()) for i in a[::-1]: print(i, end="")
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s673207889
p00006
WA: Presentation Error
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): l=list(sys.stdin.readline()) l.reverse() print("".join(l)) solve()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s867334932
p00006
WA: Presentation Error
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): l=list(sys.stdin.readline()) l.reverse() print(''.join(l)) solve()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s413909345
p00006
WA: Presentation Error
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): print(''.join(reversed(list(sys.stdin.readline())))) solve()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s625387974
p00006
WA: Presentation Error
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): print(''.join(reversed(list(sys.stdin.read())))) solve()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s002132742
p00006
WA: Presentation Error
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): print(sys.stdin.readline()[::-1]) solve()
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s415666951
p00006
WA: Presentation Error
import sys s=sys.stdin.readline() print s[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s291364429
p00006
WA: Presentation Error
import sys def str_reverse(str): r = [] for c in str: r.insert(0, c) return "".join(r) str = sys.stdin.readline() print str_reverse(str)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s800721371
p00006
WA: Presentation Error
import sys print sys.stdin.read()[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s735562460
p00006
WA: Presentation Error
import sys rawinput = raw_input(); strlist = [] for temp in rawinput: strlist.append(temp) strlist.reverse() for temp in strlist: sys.stdout.write(temp)
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s464465532
p00006
WA: Presentation Error
# Reverse Sequence import sys string = "" for line in sys.stdin: string = line print string[::-1]
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s912758990
p00006
WA: Presentation Error
str = input() for i in range(len(str) - 1, -1, -1): print(str[i], end = '')
w32nimda
admin23w
<H1>Reverse Sequence</H1> <p> Write a program which reverses a given string <var>str</var>. </p> <H2>Input</H2> <p> <var>str</var> (the size of <var>str</var> &le; 20) is given in a line. </p> <H2>Output</H2> <p> Print the reversed <var>str</var> in a line. </p> <H2>Sample Input</H2> <pre> w32nimda </pre> <H2>Output for the Sample Input</H2> <pre> admin23w </pre>
s595996602
p00007
Wrong Answer
import math price = 100000.0 n = int(raw_input()) for i in range(n): price = math.ceil((price * 1.05) / 1000) * 1000
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s435562373
p00007
Wrong Answer
def next_week(x): return ((x * 1.05) // 1000 + 1) * 1000 def week_after(x, n): for _ in range(n): x = next_week(x) return x if __name__ == '__main__': n = int(input()) print(week_after(100000, n))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s676220038
p00007
Wrong Answer
def next_week(x): return ((x * 1.05 + 1) // 1000 + 1) * 1000 def week_after(x, n): for _ in range(n): x = next_week(x) return x if __name__ == '__main__': n = int(input()) print(week_after(100000, n))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s062163304
p00007
Wrong Answer
# 累積計算 if __name__ == "__main__": n = int(input()) # print(n) y = 100000 # 10万 100,000 y2 = y / 1000 for i in range(0, n): y4 = y2 * 1.05 # y3 = round(y2 * 1.05 -0.5, 0) y3 = float(int(y2 * 1.05)) print(" {} {}".format(y4, y3)) if y4 - y3 > 0: y4 += 1 y2 = int(y4) print("{} {}".format(i, y2 * 1000)) print(y2 * 1000) # 0 105,000 # 1 110,250 -> 111,000 # 2 116,550 -> 117,000 # 3 122,850 -> 123,000 #4 129,150 -> 130,000
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s409539529
p00007
Wrong Answer
print '%d' % round((1.05**int(raw_input()))*100000,-4)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s962973824
p00007
Wrong Answer
import math print '%d' % (math.ceil((1.05**int(raw_input()))*10)*10000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s775994292
p00007
Wrong Answer
#! /usr/bin/python3 m=100 for _ in range(int(input())): m = int(m*1.05+0.9) print(m*1000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s274196968
p00007
Wrong Answer
# -*- coding: utf-8 -*- from math import ceil n = int(input()) d = int(1e5) for x in range(n): d = (1.05*d) d + int(int(ceil(d/1e3))*1e3) print (d)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s492180851
p00007
Wrong Answer
n = input() a = 100000 for i in range(1,int(n)+1): a = int(a*1.05) print(a) if(a%1000 > 0): a = 1000*int(a/1000) + 1000 print(a) print(a)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s827819185
p00007
Wrong Answer
# coding: utf-8 #Problem Name: Debt Hell #ID: tabris #Mail: t123037@kaiyodai.ac.jp n = float(raw_input()) dept = 100000 for i in range(int(n)): dept *= 1.05 if not (dept/1000).is_integer(): dept /= 1000 dept = round(dept,-1)*1000 print int(dept)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s210623151
p00007
Wrong Answer
debt = 100 for i in range(int(input())): debt *= 1.05 print(int(debt) * 1000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s602763979
p00007
Wrong Answer
while True: try: n = int(raw_input()) l = int(100000*pow(1.05, n)) if l%10000 > 0: l -= l%10000 l += 10000 print l except EOFError: break
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s940320804
p00007
Wrong Answer
while True: try: n = int(raw_input()) l = int(100000*pow(1.05, n)) if l%10000 > 5000: l -= l%10000 l += 10000 else: l -= l%10000 print l except EOFError: break
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s197915355
p00007
Wrong Answer
import math a=100000 n=int(input()) for i in range(n): a=(a+0.05*a) print(math.ceil(a/10000)*10000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s199793295
p00007
Wrong Answer
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.0001) * 10000) return inum debt = 100000 n = input() debt += debt*0.05*n print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s377171385
p00007
Wrong Answer
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.0001) * 10000) return inum debt = 100000 n = input() debt += debt*0.05*n print debt print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s962931929
p00007
Wrong Answer
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.001) * 1000) return inum debt = 100000 n = input() debt += debt*0.05*n # print debt print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s704537874
p00007
Wrong Answer
from math import ceil def roundint(num): # fnum = float(num) # inum = int(ceil(fnum * 0.0001) * 10000) # return inum num = int(num) if int(str(num)[-4:])>0: num += 10000 num = int(str(num)[:-4]+"0000") return num debt = 100000 n = input() debt += debt*0.05*n print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s108422709
p00007
Wrong Answer
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.0001) * 10000) return inum debt = 100000 n = input() for x in xrange(n): debt += debt*0.05 print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s121316984
p00007
Wrong Answer
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.0001) * 10000) return inum debt = 100000 n = input() for x in xrange(n): debt += debt*0.05 # print debt print roundint(debt)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s836805576
p00007
Wrong Answer
import math n=int(input()) s=100000 for i in range(n): s +=(s*0.05) s=s/10000 s=math.ceil(s)*10 print(str(s)+"000")
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s217625208
p00007
Wrong Answer
import math n=int(input()) s=100000 for i in range(n): s +=(s*0.05) s=s/10000 s=int(math.ceil(s)*10) print(str(s)+"000")
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s996700345
p00007
Wrong Answer
import math n=int(input()) s=100000 for i in range(n): s +=(s*0.05) s=s/10000 s=int(round(s,0)*10) print(str(s)+"000")
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s880100041
p00007
Wrong Answer
from math import ceil n = int(input()) x = 100 for i in range(n): x = ceil(x * 1.05) print(x * 1000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s945009541
p00007
Wrong Answer
a,i=5,100 import math while a!=0:a,i=a-1,math.ceil(i*1.05)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s911184313
p00007
Wrong Answer
a,i=int(input()),100 import math while a!=0:a,i=a-1,math.ceil(i*1.05)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s331188790
p00007
Wrong Answer
a,i=int(input()),100 import math while a!=0:a,i=a-1,math.ceil(i*1.05) print(str(i*1000))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s328332835
p00007
Wrong Answer
i=100 for ii in range(int(input())): i+=i/20 if i!=int(i): i=int(i+1) print(str(i*1000))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s251007250
p00007
Wrong Answer
i=100 for ii in range(int(input())): i+=i/20 if i!=int(i): i=int(i+1) print(str(int(i*1000)))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s441813670
p00007
Wrong Answer
n=input() loan=10**5 for i in xrange(n): loan+=loan*0.05 if loan%1000!=0: loan-=loan%1000 loan+=10**3 else: loan-=loan%1000 print(loan)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s873962453
p00007
Wrong Answer
import math def Interest(money,n): for i in range(n): money *= 1.05 money = math.ceil(money) return money m = 100 n = input() print n print int(Interest(m,n)*1000)
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s979483628
p00007
Wrong Answer
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): week = int(input()) base = 100000 x = 1 for i in range(week): x = round(x * 1.05 + 0.004 ,2) print(x) if __name__ == '__main__': main()
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s186541956
p00007
Wrong Answer
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): week = int(input()) base = 100000 x = 1 for i in range(week): x = round(x ** 1.05 + 0.004 ,2) print(x) if __name__ == '__main__': main()
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>
s509896555
p00007
Wrong Answer
import math def calc_debt(week=0): return math.ceil(100000 * (1.05 ** (week + 1))//10000)*10000 print(calc_debt(int(input())))
5
130000
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout of the debt in a line. </p> <H2>Sample Input</H2> <pre> 5 </pre> <H2>Output for the Sample Input</H2> <pre> 130000 </pre>