結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-08 19:00:16 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| + 264µs | |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 81,280 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-07-18 14:18:26 |
| 合計ジャッジ時間 | 2,802 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
def check(s):
for c in s:
if ord(c) < ord('0') or ord('9') < ord(c):
return False
if len(s) > 1 and s[0] == '0':
return False
if int(s) > 12345:
return False
return True
if check(raw_input()) and check(raw_input()):
print 'OK'
else:
print 'NG'
JunOnuma