s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s484437471 | p02406 | u252054808 | 1556179032 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | def nabeatsu(n):
if(n % 3 == 0):
return True
temp = n
while(temp > 0):
if(temp % 10 == 3):
return True
temp = temp // 10
return False
x = int(input())
ans = []
for i in range(x):
if(nabeatsu(i + 1)):
ans.append(i + 1)
print((' '.join(ans)))
|
s150930350 | p02406 | u242221792 | 1556249228 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | a = int(input())
for i in range(1,a+3):
if i % 3 == 0 or i % 10 == 3 or (int(i/10) % 3 == 0 and int(i/10) != 0:
print(" {}".format(i), end = "")
elif i % 10 == 3:
print(" {}".format(i), end = "")
print()
|
s529762028 | p02406 | u242221792 | 1556250026 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | a = int(input())
for i in range(1,a+1):
if i % 3 == 0 or i % 10 == 3:
print(" {}".format(i), end = "")
else:
while x < 0:
int(x/=10)
if x % 10 == 3:
print(" {}".format(i), end = "")
print()
|
s508989524 | p02406 | u482227082 | 1556423876 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | n = int(input())
i = 1
while True:
x = i
if x % 3 == 0 or x % 10 ==3 or x / 10 == 0:
print(" %d" i)
i+=1
if i > n:
print()
break
|
s603469166 | p02406 | u482227082 | 1556423986 | Python | Python3 | py | Runtime Error | 0 | 0 | 171 | n = int(input())
i = 1
while True:
x = i
if x % 3 == 0 or x % 10 ==3 or x / 10 == 0:
print(" " + i)
i+=1
if i > n:
print()
break
|
s528010425 | p02406 | u482227082 | 1556424002 | Python | Python3 | py | Runtime Error | 0 | 0 | 171 | n = int(input())
i = 1
while True:
x = i
if x % 3 == 0 or x % 10 ==3 or x / 10 == 0:
print(" %d" i)
i+=1
if i > n:
print()
break
|
s798069871 | p02406 | u482227082 | 1556424768 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | n = int(input())
i = 1
while True:
x = i
if x % 3 == 0:
print(" %d" ,i)
i+=1
if i > n:
print()
break
if x % 10 == 3:
print(" %d" ,i)
i+=1
if i > n:
print()
break
else:
x /= 10
if x != 0
... |
s546993796 | p02406 | u482227082 | 1556424776 | Python | Python3 | py | Runtime Error | 0 | 0 | 334 | n = int(input())
i = 1
while True:
x = i
if x % 3 == 0:
print(" %d" ,i)
i+=1
if i > n:
print()
break
if x % 10 == 3:
print(" %d" ,i)
i+=1
if i > n:
print()
break
else:
x /= 10
if x != 0:
... |
s108426437 | p02406 | u482227082 | 1556426115 | Python | Python3 | py | Runtime Error | 0 | 0 | 294 | n = int(input())
i = 1
ret = ""
while True:
x = i
if x % 3 == 0:
ret += " " + str(i)
elif x % 10 == 3:
ret += " " + str(i)
else
while x /= 10 > 0:
if x % 10 == 3:
ret += " " + str(i)
i+=1
if i > n:
break
print(ret)
|
s413672282 | p02406 | u482227082 | 1556426133 | Python | Python3 | py | Runtime Error | 0 | 0 | 295 | n = int(input())
i = 1
ret = ""
while True:
x = i
if x % 3 == 0:
ret += " " + str(i)
elif x % 10 == 3:
ret += " " + str(i)
else:
while x /= 10 > 0:
if x % 10 == 3:
ret += " " + str(i)
i+=1
if i > n:
break
print(ret)
|
s726637312 | p02406 | u482227082 | 1556426223 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | n = int(input())
i = 1
ret = ""
while True:
x = i
if x % 3 == 0:
ret += " " + str(i)
elif x % 10 == 3:
ret += " " + str(i)
else:
x /= 10
while x > 0 :
if x % 10 == 3:
ret += " " + str(i)
x /= 10
i+=1
if i > n:
break
print(... |
s615062211 | p02406 | u482227082 | 1556426231 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | n = int(input())
i = 1
ret = ""
while True:
x = i
if x % 3 == 0:
ret += " " + str(i)
elif x % 10 == 3:
ret += " " + str(i)
else:
x /= 10
while x > 0:
if x % 10 == 3:
ret += " " + str(i)
x /= 10
i+=1
if i > n:
break
print(r... |
s267352520 | p02406 | u805716376 | 1556706446 | Python | Python3 | py | Runtime Error | 20 | 5980 | 419 | a = set()
i = 1
n = int(input())
def checkNum():
global a, i, x
x = i
if x%3 ==0:
a.add(i)
endCheck()
include3()
x //= 10;
if x:
include3()
endCheck()
def include3():
global a, i
if x%10 == 3:
a.add(i)
endCheck()
def endCheck():
g... |
s352270733 | p02406 | u805716376 | 1556706748 | Python | Python3 | py | Runtime Error | 20 | 5980 | 419 | a = set()
i = 1
n = int(input())
def checkNum():
global a, i, x
x = i
if x%3 ==0:
a.add(i)
endCheck()
include3()
x //= 10;
if x:
include3()
endCheck()
def include3():
global a, i
if x%10 == 3:
a.add(i)
endCheck()
def endCheck():
g... |
s919267348 | p02406 | u805716376 | 1556707626 | Python | Python3 | py | Runtime Error | 20 | 5980 | 419 | a = set()
i = 1
n = int(input())
def checkNum():
global a, i, x
x = i
if x%3 ==0:
a.add(i)
endCheck()
include3()
x //= 10;
if x:
include3()
endCheck()
def include3():
global a, i
if x%10 == 3:
a.add(i)
endCheck()
def endCheck():
g... |
s554417795 | p02406 | u483716678 | 1558994436 | Python | Python | py | Runtime Error | 0 | 0 | 107 | n = int(input())
x = 1
while x <= 30:
if(x%3==0 or x%10==3):
print(' ',end=str(x))
x += 1
|
s407948703 | p02406 | u483716678 | 1559143756 | Python | Python | py | Runtime Error | 0 | 0 | 264 | n = int(input())
y = 1
while y <= n :
if(y % 3 == 0):
print(' %d'%y,end='')
else:
p = y
while(p != 0):
if(p % 10 == 3):
print(' %d'%y,end='')
break
p //= 10
y+=1
print()
|
s405575121 | p02406 | u535719732 | 1559214612 | Python | Python3 | py | Runtime Error | 0 | 0 | 211 | function check(n):
i = 1
print(" ",end="")
while(i != n):
if (i % 3 == 0):
print(i,end="")
elif(i % 10 == 3):
print(i,end="")
i = i / 10
|
s938351152 | p02406 | u535719732 | 1559214630 | Python | Python3 | py | Runtime Error | 0 | 0 | 221 | function check(n):
i = 1
print(" ",end="")
while(i != n):
if (i % 3 == 0):
print(i,end="")
elif(i % 10 == 3):
print(i,end="")
i = i / 10
check(30)
|
s986286906 | p02406 | u535719732 | 1559214655 | Python | Python3 | py | Runtime Error | 0 | 0 | 234 | inp = int(input())
function check(n):
i = 1
print(" ",end="")
while(i != n):
if (i % 3 == 0):
print(i,end="")
elif(i % 10 == 3):
print(i,end="")
i = i / 10
check(inp)
|
s166953515 | p02406 | u535719732 | 1559215864 | Python | Python3 | py | Runtime Error | 0 | 0 | 299 | inp = int(input())
for i in range(1,n+1):
i = 1
x = i
if(x%3 == 0):
print(" %d", end="")
else:
while(x):
if(x%10 == 3):
print(" %d", end="")
break
else:
x //= 10
check(inp)
|
s782553413 | p02406 | u193599711 | 1423194753 | Python | Python3 | py | Runtime Error | 0 | 0 | 162 | :!cat tes.py
array = []
for i in range(3,int(input()) + 1):
if i % 3 == 0 or i % 10 == 3:
array.append(i)
for i in array:
print('',"{0}".format(i),end='') |
s057103205 | p02406 | u067975558 | 1423220285 | Python | Python3 | py | Runtime Error | 0 | 0 | 100 | for i in range(3, int(input() + 1):
if i % 3 == 0 or '3' in str(i):
print('', i, end='') |
s567165133 | p02406 | u067975558 | 1423220317 | Python | Python3 | py | Runtime Error | 0 | 0 | 108 | for i in range(3, int(input() + 1):
if i % 3 == 0 or '3' in str(i):
print('', i, end='')
print() |
s388974725 | p02406 | u442346200 | 1424050412 | Python | Python3 | py | Runtime Error | 0 | 0 | 243 | n = int(input())
for i in range(1,n+1):
x = i
if x % 3 == 0 or x % 10 == 3:
print(' {0}'.format(i), end='')
continue
x //= 10
while x != 0:
if x % 10 == 3:
print(' {0}.format(i), end='')
break
x //= 10
print() |
s453544690 | p02406 | u442346200 | 1424050671 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | n = int(input())
for i in range(3,n+1):
x = i
if x % 3 == 0:
print(' {0}'.format(i), end='')
continue
while x != 0:
if x % 10 == 3:
print(' {0}.format(i), end='')
break
x //= 10
print() |
s112064805 | p02406 | u442346200 | 1424050822 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n = int(input())
for i in range(3,n+1):
x = i
if x % 3 == 0 or :
print(' {0}'.format(i), end='')
continue
while x != 0:
if x % 10 == 3:
print(' {0}.format(i), end='')
break
x //= 10
print() |
s578499344 | p02406 | u442346200 | 1424050874 | Python | Python3 | py | Runtime Error | 0 | 0 | 221 | n = int(input())
for i in range(3,n+1):
x = i
if x % 3 == 0:
print(' {0}'.format(i), end='')
continue
while x != 0:
if x % 10 == 3:
print(' {0}.format(i), end='')
break
x //= 10
print() |
s240434934 | p02406 | u745846646 | 1424052025 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | n = int(input())
for i in range(1, n+1):
x = i
if x % 3 == 0:
print(' {0}'.format(i), end='')
continue
while x != 0:
if x % 10 == 3:
print(' {0}'.format(i), end='')
break
x // = 10
print() |
s659837896 | p02406 | u745846646 | 1424052119 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | n = int(input())
for i in range(3, n+1):
x = i
if x % 3 == 0:
print(' {0}'.format(i), end='')
continue
while x != 0:
if x % 10 == 3:
print(' {0}'.format(i), end='')
break
x // = 10
print() |
s149676103 | p02406 | u745846646 | 1424052726 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | n = int(input())
for i in range(3, n+1):
x = i
if x % 3 == 0:
print(' {0}'.format(i), end=' ')
continue
while x != 0:
if x % 10 == 3:
print(' {0}'.format(i), end=' ')
break
x // = 10
print() |
s022167455 | p02406 | u376883550 | 1424092930 | Python | Python | py | Runtime Error | 0 | 0 | 174 | n = input()
array = []
for i in range(1, n + 1):
if x % 3 == 0 or x % 10 == 3:
array.append(x)
print str(array).replace('[', '').replace(']', '').replace(',', '') |
s047626431 | p02406 | u172616925 | 1435570558 | Python | Python | py | Runtime Error | 0 | 0 | 99 | n = int(raw_input())
for i in range(1, n+1)
if (i % 3 == 0 or i % 10 == 3)
print (" %d" % i), |
s030193911 | p02406 | u172616925 | 1435570747 | Python | Python | py | Runtime Error | 0 | 0 | 97 | n = int(raw_input())
for i in range(1, n+1)
if (i % 3 == 0 or i % 10 == 3)
print " %d" % i, |
s807982789 | p02406 | u172616925 | 1435570753 | Python | Python | py | Runtime Error | 0 | 0 | 96 | n = int(raw_input())
for i in range(1, n+1)
if (i % 3 == 0 or i % 10 == 3)
print " %d" % i |
s914170877 | p02406 | u172616925 | 1435570762 | Python | Python | py | Runtime Error | 0 | 0 | 97 | n = int(raw_input())
for i in range(1, n+1)
if (i % 3 == 0 or i % 10 == 3):
print " %d" % i |
s672005197 | p02406 | u224288634 | 1444188467 | Python | Python | py | Runtime Error | 0 | 0 | 171 | import sys
n = input()
i = 1
for i in range(n) :
if i%3==0 :
sys.stdout.write(??? %d???%i)
for j in range(n) :
if(j%10==3):
sys.stdout.wite(??? %d???%j)
print?????? |
s917767340 | p02406 | u224288634 | 1444188519 | Python | Python | py | Runtime Error | 0 | 0 | 165 | import sys
n = input()
for i in range(n) :
if i%3==0 :
sys.stdout.write(??? %d???%i)
for j in range(n) :
if(j%10==3):
sys.stdout.wite(??? %d???%j)
print?????? |
s624813903 | p02406 | u224288634 | 1444189074 | Python | Python | py | Runtime Error | 0 | 0 | 211 | import sys
n = input()
for i in range(n) :
if i%3==0 :
sys.stdout.write(??? ???)
sys.stdout.write(str(i))
for j in range(n) :
if(j%10==3):
sys.stdout.write(??? ???)
sys.stdout.wite(str(j))
print?????? |
s937086702 | p02406 | u224288634 | 1444189398 | Python | Python | py | Runtime Error | 0 | 0 | 198 | import sys
n = input()
for i in range(1,n+1) :
if i%3==0 :
sys.stdout.write(??? ???)
sys.stdout.write(str(i))
elif(i%10==3):
sys.stdout.write(??? ???)
sys.stdout.wite(str(i))
print ?????? |
s055260597 | p02406 | u811841526 | 1449077720 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | n = int(input())
for i in range(1,n+1):
x = i
if x % 3 == 0:
print('', i, end='')
else:
while True:
if x % 10 == 3:
print('', i, end='')
x //= 10
if x == 0:
break |
s598844854 | p02406 | u834416077 | 1454467633 | Python | Python | py | Runtime Error | 0 | 0 | 160 | n = int(raw_input())
print "",
for i in range(n+1):
if i%3 == 0:
print ("{0}",.format(i))
elif i%3 == 3:
print ("{0}",.format(i))
else:
i += 1 |
s391154956 | p02406 | u834416077 | 1454468237 | Python | Python | py | Runtime Error | 0 | 0 | 84 | n=input()
print"",
for i in range(n+1):
if i%3==0 or str(i).count('3'):
print i, |
s961233210 | p02406 | u834416077 | 1454468265 | Python | Python | py | Runtime Error | 0 | 0 | 86 | n=input()
print"",
for i in range(1,n+1):
if i%3==0 or str(i).count('3'):
print i, |
s967401635 | p02406 | u047737909 | 1454684302 | Python | Python | py | Runtime Error | 0 | 0 | 58 | n = int(raw_input())
i =0
while i <=n:
if i%3==0
print'i' |
s225881690 | p02406 | u047737909 | 1454684524 | Python | Python | py | Runtime Error | 0 | 0 | 137 | n = input()
x = 1
print ''
while True:
if x > n:
break
if (x % 3 == 0) or ('3' in str(x)):
print x
x =x + 1 |
s859729946 | p02406 | u970436839 | 1454759736 | Python | Python | py | Runtime Error | 0 | 0 | 96 | n = input()
print ,
for i in xrange(1, n+1):
if i % 3 == 0 or i % 10 == 3:
print i, |
s270700084 | p02406 | u619765879 | 1454999389 | Python | Python | py | Runtime Error | 0 | 0 | 62 | for i in range(n):
if i%3==0 or i%10==3:
print ' %d' % i |
s094524353 | p02406 | u233232390 | 1454999455 | Python | Python | py | Runtime Error | 0 | 0 | 140 | n = input()
x = 1
ans = ''
while 1:
if x > n:
break
if ( x % 3 == 0 ) or ( '3' in str(x) ):
ans = ans + x
x += 1
print ans |
s845993822 | p02406 | u233232390 | 1454999530 | Python | Python | py | Runtime Error | 0 | 0 | 138 | n = input()
x = 1
ans = ''
while 1:
if x > n:
break
if ( x % 3 == 0 ) or ( '3' in str(x) ):
ans = ans + x
x += 1
print ans |
s676967578 | p02406 | u233232390 | 1454999653 | Python | Python | py | Runtime Error | 0 | 0 | 139 | n = input()
x = 1
ans = ' '
while 1:
if x > n:
break
if ( x % 3 == 0 ) or ( '3' in str(x) ):
ans = ans + x
x += 1
print ans |
s427676118 | p02406 | u233232390 | 1454999768 | Python | Python | py | Runtime Error | 0 | 0 | 142 | n = input()
x = 1
ans = 0
while 1:
if x > n:
break
if ( x % 3 == 0 ) or ( '3' in str(x) ):
ans = ans + str(x)
x += 1
print ans |
s128626730 | p02406 | u119456964 | 1455000099 | Python | Python | py | Runtime Error | 0 | 0 | 155 | n = int(raw_input())
s = ''
for i in range(1, n+1):
if i%3 == 0:
s = s + ' ' + str(i)
elif i%10 == 3:
s = s + ' ' + srt(i)
print s |
s740172014 | p02406 | u619765879 | 1455000479 | Python | Python | py | Runtime Error | 0 | 0 | 206 | n = input()
for i in range(1,n+1):
x = i
if x%3==0:
print ' %d', % x
continue
elif x<=n:
if x%10==3:
print ' %d', % x
break
else:
x /= 10
if x==0:
break |
s387917391 | p02406 | u619765879 | 1455001179 | Python | Python | py | Runtime Error | 0 | 0 | 228 | import sys
for i in range(1,n+1):
x = i
if x%3==0:
sys.stdout.write(' %d' % x)
continue
while x<=n:
if x%10==3:
sys.stdout.write(' %d' % x)
break
else:
x /= 10
if x==0:
break |
s392146297 | p02406 | u038243492 | 1455031444 | Python | Python | py | Runtime Error | 0 | 0 | 109 | a = gets.to_i
for num in 1..a
if num.to_s =~ /3/ || num % 3 == 0
print " #{num}"
end
end
puts |
s170740648 | p02406 | u572790226 | 1459566060 | Python | Python | py | Runtime Error | 0 | 0 | 301 | n = int(input())
for i in range(1, n+1):
if i % 3 == 0:
print(' '+str(i), end = '')
elif i % 10 ==3:
print(' '+str(i), end = '')
else:
x = i
while x != 0:
x //= 10
if x % 10 == 3:
print(' '+str(i), end = '')
print('') |
s038071770 | p02406 | u762833208 | 1461214712 | Python | Python | py | Runtime Error | 0 | 0 | 116 | n = input()
lst = []
for i in range(3,n+1):
if i%3==0:
lst.append(i)
elif i%10==3:
lst.append(i)
print " "+lst |
s545236306 | p02406 | u762833208 | 1461660035 | Python | Python | py | Runtime Error | 0 | 0 | 116 | n = input()
lst = []
for i in range(3,n+1):
if i%3==0:
lst.append(i)
elif i%10==3:
lst.append(i)
print " "+lst |
s912727401 | p02406 | u762833208 | 1461720168 | Python | Python | py | Runtime Error | 0 | 0 | 78 | n = input()
for i in range(1,n+1):
if i%3==0 or str(i).count.("3"):
print i |
s182314412 | p02406 | u762833208 | 1461720271 | Python | Python | py | Runtime Error | 0 | 0 | 88 | n = input()
print "",
for i in range(1,n+1):
if i%3==0 or str(i).count.('3'):
print i |
s055898012 | p02406 | u587193722 | 1469627542 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | x = int(input())
for i in range(1,x+1):
if i%3 ==0:
print(' ',i,end='',sep='')
elif i%10 ==3:
print(' ',i,end='',sep='')
prinit() |
s165634423 | p02406 | u587193722 | 1469627568 | Python | Python3 | py | Runtime Error | 0 | 0 | 143 | x = int(input())
for i in range(1,x+1):
if i%3 ==0:
print(i,' '.end='',sep='')
elif i%10 ==3:
print(i,'',end='',sep='') |
s711843748 | p02406 | u252415092 | 1474033603 | Python | Python | py | Runtime Error | 0 | 0 | 101 | while 1:
m,n=map(int, raw_input().split())
if n==m==0: break
else: print (('#'*n+'\n')*m) |
s653998440 | p02406 | u252415092 | 1474033612 | Python | Python | py | Runtime Error | 0 | 0 | 101 | while 1:
m,n=map(int, raw_input().split())
if n==m==0: break
else: print (('#'*n+'\n')*m) |
s976261711 | p02406 | u159356473 | 1476256351 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | #coding: UTF-8
import math
def SP(a):
ans=" "
for i in range(a+1):
if i!=0 and i%3==0 or i%10==3:
ans+=str(i)+" "
continue
if int(i/10) >= 1:
if int(i/10)%10==3:
ans += str(i)+" "
print(ans[:-1])
if __name__=="__main__":
a=input()
... |
s232740628 | p02406 | u159356473 | 1476256512 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | #coding: UTF-8
import math
def SP(a):
ans=" "
for i in range(a+1):
if i!=0 and i%3==0 or i%10==3:
ans+=str(i)+" "
continue
if int(i/10) >= 1:
if int(i/10)%10==3:
ans += str(i)+" "
print(ans[:-1])
if __name__=="__main__":
a=input()
... |
s093290116 | p02406 | u659302741 | 1477626255 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | def contains3(n):
while n > 0:
if n % 10 == 3:
return True
else:
n /= 10
return Falses
x = int(input())
out = ""
for i in range(x):
n = i + 1
if n % 3 == 0 or contains3(n):
out += (" %d" % n)
print(out) |
s943823267 | p02406 | u236295012 | 1477783053 | Python | Python3 | py | Runtime Error | 0 | 0 | 127 | x = int(input())
for i in range(1,x+1):
if i % 3 == 0 or i % 10 == 3 :
print(" {}".format(i),end='')
print() |
s935176082 | p02406 | u635647915 | 1478908932 | Python | Python | py | Runtime Error | 0 | 0 | 375 | #coding:utf-8
def call(n):
i=1
for i in range(1,n+1):
x=i
if x%3==0:
print(" "+str(x),end="")
else:
while x!=0:
if x%10==3:
print(" "+str(x),end="")
break
else:
x/=10
... |
s587190391 | p02406 | u635647915 | 1478909055 | Python | Python3 | py | Runtime Error | 0 | 0 | 366 | #coding:utf-8
def call(n):
for i in range(1,n+1):
x=i
if x%3==0:
print(" "+str(i,end="")
else:
while x!=0:
if x%10==3:
print(" "+str(i),end="")
break
else:
x//=10
... |
s785056567 | p02406 | u186082958 | 1484227828 | Python | Python3 | py | Runtime Error | 0 | 0 | 374 | <?php
fscanf(STDIN,"%d",$n);
$i=1;
while(true){
$flag=false;
if($i%3==0){
$flag=true;
}
$a=$i;
while($a>0){
if($a%10==3){
$flag=true;
}
$a/=10;
}
if($flag){
echo " ", $i;
... |
s833364034 | p02406 | u307520683 | 1486048105 | Python | Python | py | Runtime Error | 0 | 0 | 267 | import sys
while 1:
N=input()
sys.stdout.write('\n')
i = 1
while 1:
if (i % 3) == 0:
sys.stdout.write(" ")
sys.stdout.write("%d" % i)
else :
if (i % 10 ) == 3:
sys.stdout.write(' ')
sys.stdout.write("%d" % i)
if i+1 > N:
break
i += 1 |
s700607257 | p02406 | u921541953 | 1489314837 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | n = int(input())
print(,end=' ')
for i in range(3, n + 1):
if i % 3 == 0 or i % 10 == 3:
print(i, end=' ') |
s492159510 | p02406 | u756958775 | 1490117644 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | n = int(input().split())
for i in range(n):
if i%3==0:
print(" "+str(i+1), end="")
else:
x = i+1
while(x>0):
if x%10==3:
print(" "+str(i+1), end="")
break
else:
x = x//10 |
s680850399 | p02406 | u957680575 | 1493211307 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | a = int(input())
x=-1
y=[]
while x<=a:
x+=1
if x%10==3 or x%3==0:
y.append(str(x))
print(" ".join(y)) |
s498115339 | p02406 | u957680575 | 1493211347 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | a = int(input())
x=-1
y=[]
while x<=a:
x+=1
if x%10==3 or x%3==0:
y.append(str(x))
print(" ".join(y)) |
s565820364 | p02406 | u580737984 | 1498719161 | Python | Python | py | Runtime Error | 0 | 0 | 140 | i = int(input())
j = 1
while j <= i:
if j%3 == 0 or j%10 ==3 or'3' in str(j):
print(' ',end='')
print(j,end='')
j += 1
print() |
s198785258 | p02406 | u623827446 | 1498721902 | Python | Python3 | py | Runtime Error | 0 | 0 | 116 | n=int(raw_input())
ans=''
for i in range(3,n+1):
if i%3==0 or '3' in str(i):
ans+=(' '+str(i))
print ans |
s104692905 | p02406 | u261533743 | 1498724818 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | N = int(input())
print(' {}'.format(' '.join([str(c) for c in range(1, N + 1)
if c % 3 == 0 or '3' in str(c)]) |
s658884287 | p02406 | u869667855 | 1500045105 | Python | Python | py | Runtime Error | 0 | 0 | 128 | i = 1
n = int(input())
while i <= n:
if i % 3 == 0:
print(i , end = ' ')
elif i % 10 == 3:
print(i , end = ' ')
i = i + 1 |
s550363384 | p02406 | u914146430 | 1500277686 | Python | Python3 | py | Runtime Error | 0 | 0 | 445 | result=[]
for i in range(1,n+1):
print(i)
if i %3==0:
result.append(i)
print("3?????°")
# elif i%10==3:
# result.append(i)
else:
k=i
for j in range(1,5):
# print(10**j, i%(10**j))
if k%(10**j)==3:
result.append(i)
... |
s653108200 | p02406 | u914146430 | 1500277752 | Python | Python3 | py | Runtime Error | 0 | 0 | 288 | result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,5):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue |
s051083459 | p02406 | u914146430 | 1500277926 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,5):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
print(" ",*result) |
s691064341 | p02406 | u914146430 | 1500278136 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,5):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
print(" "," ".... |
s307161812 | p02406 | u914146430 | 1500278252 | Python | Python3 | py | Runtime Error | 0 | 0 | 329 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
print... |
s144044773 | p02406 | u914146430 | 1500278349 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s458035865 | p02406 | u914146430 | 1500278414 | Python | Python3 | py | Runtime Error | 0 | 0 | 336 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s626444630 | p02406 | u914146430 | 1500278483 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s156372336 | p02406 | u914146430 | 1500278494 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s460358269 | p02406 | u914146430 | 1500278654 | Python | Python3 | py | Runtime Error | 0 | 0 | 348 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
r="... |
s220858354 | p02406 | u914146430 | 1500278755 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s883399773 | p02406 | u914146430 | 1500278764 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s631245126 | p02406 | u914146430 | 1500278852 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n)+1):
if k%(10**j)==3:
result.append(i)
break
else:
k=k//(10**j)
else:
continue
... |
s407833404 | p02406 | u914146430 | 1500279736 | Python | Python3 | py | Runtime Error | 0 | 0 | 334 | n=int(input())
result=[]
for i in range(1,n+1):
if i %3==0:
result.append(i)
else:
k=i
for j in range(1,len(str(n))+1):
if k%10**==3:
result.append(i)
break
else:
k=k//10**j
else:
continue
pri... |
s159121723 | p02406 | u350064373 | 1501223270 | Python | Python3 | py | Runtime Error | 0 | 0 | 49 | input("")
print(3 6 9 12 13 15 18 21 23 24 27 30) |
s052567611 | p02406 | u957021183 | 1502949763 | Python | Python3 | py | Runtime Error | 20 | 7864 | 620 | # Aizu Problem ITP_1_5_D: Structured Programming
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
res = []
def CHECK_NUM(n, i):
x = i
if x % 3 == 0:
res.append(i)
else:
while True:
if x % 10 ... |
s434455943 | p02406 | u391079301 | 1503817025 | Python | Python3 | py | Runtime Error | 0 | 0 | 116 | n = int(input())
for i in range(1, n + 1):
if i % 3 == 0 or i % 10 == 3:
print(f' {i}', end='')
print() |
s503335874 | p02406 | u933096856 | 1505009443 | Python | Python3 | py | Runtime Error | 0 | 0 | 102 | a=[]
n=int(input())
for i in range(3,n+1):
if i%3==0 or i%10==3:
a.append(i)
print(' '+*a) |
s547062735 | p02406 | u933096856 | 1505057098 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | n=int(input())
a,c,i=[],0,1
while i <= n:
if c==0:
x=i
if x%3==0:
print(' '+i, end='')
i+=1
continue
c=0
if x%10==3:
print(' '+i, end='')
i+=1
continue
x//=10
if x == 0:
i+=1
continue
else:
c=1
pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.