結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
|
提出日時 | 2016-11-20 09:52:17 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 10 ms / 2,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 656 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-11-27 06:47:53 |
合計ジャッジ時間 | 1,470 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#yuki_446 def f(s): if len(s)>1 and s[0]=='0': return False if s.isdigit()==False: return False if int(s)>12345: return False return True a=raw_input() b=raw_input() if f(a) and f(b): print 'OK' else: print 'NG'