結果

問題 No.207 世界のなんとか
ユーザー soupesuteaka
提出日時 2016-03-02 19:48:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 338 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-09 10:47:00
合計ジャッジ時間 1,390 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
import re
import itertools
from collections import deque

### defs ###
def con3(x):
	while x > 0:
		if (x%10==3):
			return True
		x = x//10
	return False

### main ###
A, B = map(int, sys.stdin.readline().split())
ans = []
for x in range(A,B+1):
	if (x%3==0 or con3(x)):
		ans.append(x)
for x in ans:
	print(x)
0