結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー vockyXvockyX
提出日時 2016-11-18 22:32:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-04 17:48:14
合計ジャッジ時間 1,179 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,496 KB
testcase_01 AC 27 ms
10,752 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 WA -
testcase_04 AC 25 ms
10,496 KB
testcase_05 AC 26 ms
10,496 KB
testcase_06 AC 25 ms
10,752 KB
testcase_07 AC 25 ms
10,624 KB
testcase_08 AC 25 ms
10,752 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 25 ms
10,624 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def isInt(string):
	if string[0]=="0":
		return False
	for i in string:
		if i not in ["1","2","3","4","5","6","7","8","9","0"]:			
			return False
	return True


if __name__=="__main__":
	a=input()
	b=input()
	if isInt(a) and isInt(b):
		if 0<=int(a)<=12345 and 0<=int(b)<=12345:
			print("OK")
			exit(1)
	print("NG")

0