結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-11-18 23:14:07 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 568µs | |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 21:16:46 |
| 合計ジャッジ時間 | 1,561 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
i=input
a=i()
b=i()
for i in a:
if not i.isdigit(): print('NG'); exit()
for i in b:
if not i.isdigit(): print('NG'); exit()
if int(a) > 12345 or int(b) > 12345:
print('NG')
elif (int(a) != 0 and a[0] == '0') or (int(b) != 0 and b[0] == '0'):
print('NG')
elif (int(a) == 0 and len(a) > 1) or (int(b) == 0 and len(b) > 1):
print('NG')
else:
print('OK')
compass19