結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-18 22:31:56 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 2,000 ms |
| + 262µs | |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 14,464 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2026-10-19 11:54:33 |
| 合計ジャッジ時間 | 2,314 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
def is_int(s):
try:
int(str(s))
return True
except ValueError:
return False
def ok(n):
return n >= 0 and n <= 12345
A = str(input())
B = str(input())
if is_int(A) and is_int(B):
if A == str(int(A)) and B == str(int(B)) and ok(int(A)) and ok(int(B)):
print("OK")
else:
print("NG")
else:
print("NG")