結果

問題 No.207 世界のなんとか
ユーザー tatt61880
提出日時 2020-04-25 16:34:26
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 146,548 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 10:55:40
合計ジャッジ時間 2,640 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var a: int :: cui@inputInt()
	var b: int :: cui@inputInt()
	for n(a, b)
		if(f(n))
			do cui@print("\{n}\n")
		end if
	end for
	
	func f(n: int): bool
		if(n % 3 = 0)
			ret true
		end if
		while(n <> 0)
			if(n % 10 = 3)
				ret true
			end if
			do n :/ 10
		end while
		ret false
	end func
end func
0