結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-18 22:56:19 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 551 bytes |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 07:37:30 |
| 合計ジャッジ時間 | 788 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
ソースコード
n = raw_input()
m = raw_input()
if n.isdigit() == True and m.isdigit() == True:
if int(n) >= 0 and int(n) < 12345 and int(m) >= 0 and int(m) <= 12345:
if n.startswith("0") == False and m.startswith("0") == False:
n = int(n)
m = int(m)
ans = n + m
print "OK"
elif len(str(n)) == 1 or len(str(m)) == 1:
n = int(n)
m = int(m)
ans = n + m
print "OK"
else:
print "NG"
else:
print "NG"
else:
print "NG"