problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p02612 | s097112637 | Wrong Answer | n=int(input())
for i in range(10):
if (i*1000)/n >= 1:
break
print(i*1000-n) |
p02612 | s364049338 | Wrong Answer | N = int(input())
for i in range(10):
if 1000 * i >= N:
break
print(1000 * i - N)
|
p02612 | s418649121 | Wrong Answer | n=int(input())
if(n<1000):
print(1000-n)
else:
a=n//1000
print(n-(a*1000)) |
p02612 | s612981861 | Wrong Answer | amount = int(input())
x = 1000
while True:
if x < amount:
x += x
else:
break
print(x - amount)
|
p02612 | s160468884 | Wrong Answer | n = int(input())
print(1000 - (n % 1000)) |
p02612 | s929093676 | Wrong Answer | n=int(input())
if n%1000 == 0 : print(0)
else :
ans=1000*((n/1000)+1)-n
print(ans) |
p02612 | s812211870 | Wrong Answer | n = int(input())
a = n%1000
a = 1000-a
a%=a
print(a) |
p02612 | s833270081 | Wrong Answer | N = int(input())
x = N % 1000
print(x) |
p02612 | s863482811 | Wrong Answer | N = int(input())
print((1000 - N % 1000) % 10000)
|
p02612 | s108166168 | Wrong Answer | import math
a = input()
b = int(a)
c = 1000
if len(a) < 4:
print(c-b)
else:
if a[-4] != '0':
b = int(a[-3:])
print(c-b)
elif a[-3] != '0':
b = int(a[-2:])
print(c-b)
elif a[-2] != '0':
b = int(a[-1:])
print(c-b)
else:
print(int(0)) |
p02612 | s094270940 | Wrong Answer | n = int(input())
print(n % 1000) |
p02612 | s322409348 | Wrong Answer | a = int(input().rstrip())
print(int(a %1000)) |
p02612 | s651644858 | Wrong Answer | n = int(input())
print(n % 1000) |
p02612 | s086840446 | Wrong Answer | s=int(input())
print(1000-s%1000) |
p02612 | s209474450 | Wrong Answer | def payment(N, paper):
back = 1000*paper - N
return back
|
p02612 | s251117244 | Wrong Answer | N = int(input())
if N % 1000 == 0:
print(0)
else:
div = N / 1000
exc = (div +1)*1000 - N
print(exc)
|
p02612 | s784587155 | Wrong Answer | n = int(input())
print(1000 - n % 1000) |
p02612 | s069904330 | Wrong Answer | n = int(input())
print(n % 1000) |
p02612 | s871363261 | Wrong Answer |
def main():
n = int(input())
if n < 1000:
print(n)
else:
print(str(n)[1:])
if __name__ == "__main__":
main()
|
p02612 | s321905650 | Wrong Answer | N = int(input())
print(1000-N%1000) |
p02612 | s372996343 | Wrong Answer | n = int(input())
while n >= 1000:
n -= 1000
print(n)
|
p02612 | s977974259 | Wrong Answer | N=(input())
a=N[0]
if int(N)<=1000:
print(1000-int(N))
else:
print(1000-int(N)%1000)
|
p02612 | s113289890 | Wrong Answer | n = int(input())
a = n // 1000
b = a + 1
print(f"{1000*b-n}") |
p02612 | s392621044 | Wrong Answer | N = int(input())
print(N%1000) |
p02612 | s957711465 | Wrong Answer | price = int(input())
print(price%1000)
|
p02612 | s312844745 | Wrong Answer | N = int(input())
ans = 1000 - N % 1000
print(ans) |
p02612 | s059163687 | Wrong Answer | N = int(input())
a = N//1000
change = ((a+1) * 1000) - N
print(change) |
p02612 | s702726817 | Wrong Answer | N = int(input())
print(N % 1000) |
p02612 | s281225582 | Wrong Answer | n=int(input())
a=n%1000
print(1000-a) |
p02612 | s613553494 | Wrong Answer |
n = int(input())
print(1000 - n%1000) |
p02612 | s975043084 | Wrong Answer | N= input()
x=int(N)
if x<1000:
print(1000-x)
if x > 999:
while True: #0 1 2 4 5が出力される
x -= 1000
if x < 1000:
break
print(1000-x) |
p02612 | s745733572 | Wrong Answer | n = int(input())
print(1000 - n % 1000) |
p02612 | s301669510 | Wrong Answer | print(int(input())%1000) |
p02612 | s933627877 | Wrong Answer | #A
N=int(input())
print(N%1000) |
p02612 | s305153097 | Wrong Answer | print(int(input())%1000)
|
p02612 | s593115929 | Wrong Answer | n = int(input())
rem = n % 1000
print(1000 - rem) |
p02612 | s985649461 | Wrong Answer | number = int(input())
thausand_number = int(number / 1000)
if number % 1000 == 0:
print(0)
else:
print(number - thausand_number * 1000) |
p02612 | s834653082 | Wrong Answer | in_value = int(input())
while(1):
in_value %= 1000
if in_value < 1000:
in_value = 1000 - in_value
print(in_value)
break
|
p02612 | s779227886 | Wrong Answer | n = int(input())
ans = 1000-(n%1000)
print(ans) |
p02612 | s479939865 | Wrong Answer | def change(x):
res = x%1000
if res:
return 1000 - res
return 0 |
p02612 | s302524256 | Wrong Answer | from collections import deque
import math
import os
import random
import re
import sys
#n=list(map(int, input().split()))
#n=map(int, input().split())
def main():
n=int(input())
yen=1000
if n != yen+2000:
print(n-1800)
else:
print(0)
main()
'''
if __name__ == '__main__':
main()
'''
|
p02612 | s056351804 | Wrong Answer | N = int(input())
print(1000-(N&1000)) |
p02612 | s690175877 | Wrong Answer | n=int(input())
if n%1000==0:
print(0)
else:
print(n//1000+1) |
p02612 | s704933474 | Wrong Answer | n = int(input())
print(n % 1000) |
p02612 | s708297037 | Wrong Answer | N=int(input())
a=N%1000
if N>1000 and a>500:
print(1000-a)
elif N>1000 and a<500:
print(a)
elif N<1000:
print(1000-a) |
p02612 | s595752573 | Wrong Answer | cash = int(input())
paid = 1000 - cash % 1000
print(paid) |
p02612 | s756444381 | Wrong Answer | n=int(input())
print(1000-n%1000) |
p02612 | s670783504 | Wrong Answer | money = int(input())
print(money % 1000) |
p02612 | s698381248 | Wrong Answer | n=int(input())
print(n%1000) |
p02612 | s672666470 | Wrong Answer | n=int(input())
k=n//1000
print((k+1)*1000-n) |
p02612 | s462852910 | Wrong Answer | N = int(input())
s = N // 1000
print(abs(N - (s + 1) * 1000)) |
p02612 | s002884639 | Wrong Answer | N=int(input())
M=N%1000
print(M) |
p02612 | s174346897 | Wrong Answer | x = int(input())
print(1000 - x % 1000) |
p02612 | s344588606 | Wrong Answer | N = input()
print(1000-int(N[-3:])) |
p02612 | s132127666 | Wrong Answer | N = int(input())
x = N // 1000
x = 2 * x
print(x - N) |
p02612 | s787220098 | Wrong Answer | n=int(input())
print(n%1000) |
p02612 | s740758344 | Wrong Answer | import sys
def I(): return int(sys.stdin.readline().rstrip())
N = I()
_, c = divmod(N, 1000)
print(1000 - c) |
p02612 | s563590424 | Wrong Answer | N = int( input( ) )
x = N % 1000
print( 1000 - int(x) ) |
p02612 | s634242000 | Wrong Answer | import sys
stdin = sys.stdin
sys.setrecursionlimit(10**6)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()
n = ni()
print(n%1000) |
p02612 | s758195038 | Wrong Answer | Y=int(input())
print((Y-2000)*-1) |
p02612 | s540543899 | Wrong Answer | print(1000-int(input())%1000) |
p02612 | s421338190 | Wrong Answer | N=int(input())
print(1000-N%1000) |
p02612 | s578422292 | Wrong Answer | N=int(input())
for i in range(10):
if i*1000>=N:print((i*1000)-N);break |
p02612 | s815035618 | Wrong Answer | # input
N = int(input())
# check
print(N % 1000) |
p02612 | s094355466 | Wrong Answer | print(int(input())%1000) |
p02612 | s901973230 | Wrong Answer | from sys import stdin
N = int(stdin.readline().rstrip())
ans = 1000 - N % 1000
print(ans) |
p02612 | s074943022 | Wrong Answer | #!/usr/bin/env python3
import os
from sys import stdin, stdout
def solve(tc):
n = int(stdin.readline().strip())
print(1000 - (n%1000))
tcs = 1
tc = 1
while tc <= tcs:
solve(tc)
tc += 1 |
p02612 | s000131581 | Wrong Answer | N= int(input())
for i in range(0,10):
if i*1000 >= N:
print(i*1000 -N)
break |
p02612 | s424591479 | Wrong Answer | n = input()
keta = len(n)
ans = int(n[keta - 3:keta]) % 1000
print(ans) |
p02612 | s547413243 | Wrong Answer | N = int(input())
print(1000 - N % 1000) |
p02612 | s071661190 | Wrong Answer | n = int(input())
print(n%1000) |
p02612 | s142227156 | Wrong Answer | print(1000 - int(input())%1000 ) |
p02612 | s947596126 | Wrong Answer | N = int(input())
# N = 1900
print(N % 1000) |
p02612 | s601609152 | Wrong Answer | def main():
N = int(input())
print(1000 - N % 1000)
if __name__ == '__main__':
main() |
p02612 | s500471890 | Wrong Answer | N = int(input())
otsuri = 1000 - int(N%1000)
print(otsuri)
|
p02612 | s331446918 | Wrong Answer | print(int(input()) % 1000)
|
p02612 | s307133225 | Wrong Answer | def main():
n = int(input())
print(min(n%1000,(1000-n%1000)%1000))
main()
|
p02612 | s517110987 | Wrong Answer | n = int(input())
n1 = n%1000
if n1 == 0:
print(0)
else:
print(1000-n) |
p02612 | s308332777 | Wrong Answer | n=int(input())
print(n%1000) |
p02612 | s100280215 | Wrong Answer | N = int(input())
if N > 1000:
hasu = N - (N // 1000)*1000
else:
hasu = N
print(1000-hasu) |
p02612 | s856329951 | Wrong Answer | N = int(input())
if (N % 1000 == 0):
print("0")
else:
print(N % 1000) |
p02612 | s637576569 | Wrong Answer | N = int(open(0).read())
print(N % 1000)
|
p02612 | s876297842 | Wrong Answer | N= int(input())
for n in range(10):
a = 1000*n -N
if 0< a < 1000:
print(a)
break |
p02612 | s657655386 | Wrong Answer | print('N')
x=int(input())
x=1000-x%1000
if(x==1000):
x=0
print(x) |
p02612 | s689298959 | Wrong Answer | import math
import sys
def main():
input = sys.stdin.buffer.readline
n = int(input())
ans = n
while True:
ans = ans - 1000
if(ans < 1000):
print(ans)
break
if __name__ == "__main__":
main()
|
p02612 | s416502772 | Wrong Answer | n = int(input())
print(n%1000)
|
p02612 | s510130640 | Wrong Answer | N = int(input())
m = N % 1000
if m == 0:
print(0)
else:
print(N - m) |
p02612 | s604751779 | Wrong Answer | N=int(input())
print(int(N%1000)) |
p02612 | s903093553 | Wrong Answer | #A - Payment
N = int(input())
a = N % 1000
if N <1000 :
ans = 1000- a
elif a >=500:
ans = 1000 - a
else:
ans = a
print(ans) |
p02612 | s696689234 | Wrong Answer | N = int(input())
print(N%1000)
|
p02612 | s045548256 | Wrong Answer | N = int(input())
print(1000-( N % 1000 ))
|
p02612 | s222281394 | Wrong Answer | N = int(input())
a = 1000
while N>=a:
a += 1000
print(a-N) |
p02612 | s174581475 | Wrong Answer | payment = int(input())
print(1000-payment%1000) |
p02612 | s943414294 | Wrong Answer | n=int(input())
print(1000-n%1000) |
p02612 | s882648470 | Wrong Answer | num = int(input()) #ここで標準入力
while True:
ans = num - 1000
if ans < 1000:
break
print(ans)
|
p02612 | s240612880 | Wrong Answer | N=int(input())
m=int(N/1000)+1
change=1000*m-N
print(change) |
p02612 | s188296875 | Wrong Answer | N = input()
print(1000 - int(N[-3:])) |
p02612 | s060810540 | Wrong Answer | b = int(input())
print(1000 - b%1000) |
p02612 | s177245050 | Wrong Answer | N = int(input())
count = 0
money = 1000
while N >= money * count:
count += 1
print(money * count - N)
|
p02612 | s116440563 | Wrong Answer | str = input()
result = int(str) % 1000
print(result) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.