結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-11-18 23:14:07 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 2,000 ms |
| + 728µs | |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2026-10-19 11:56:34 |
| 合計ジャッジ時間 | 1,924 ms |
|
ジャッジサーバーID (参考情報) |
judge6_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
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