結果
| 問題 | 
                            No.446 ゆきこーだーの雨と雪 (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-11-18 22:54:41 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 278 bytes | 
| コンパイル時間 | 123 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-11-26 07:35:53 | 
| 合計ジャッジ時間 | 1,227 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 8 WA * 5 | 
ソースコード
def judge(strnum):
    if strnum.isdigit():
        num = int(strnum)
        if num <= 12345 and 0 <= num and num == strnum:
            return True
        else:
            return False
a = input()
b = input()
if judge(a) and judge(b):
    print("OK")
else:
    print("NG")