結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
|
提出日時 | 2016-11-18 22:35:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-26 07:18:20 |
合計ジャッジ時間 | 1,159 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
import re input_pattern = re.compile(r'^([1-9]\d*)$') def check(in_str): if len(in_str) < 1 or len(in_str) > 5: return False if in_str == '0': return True return input_pattern.match(in_str) is not None A = input() B = input() if check(A) and check(B): print('OK') else: print('NG')