結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2018-03-03 16:44:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 550 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-30 04:43:06 |
合計ジャッジ時間 | 1,420 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
# -*- coding: utf-8 -*- """ No.446 ゆきこーだーの雨と雪 (1) https://yukicoder.me/problems/no/446 """ import sys from sys import stdin input = stdin.readline def solve(A, B): try: num_a = int(A) num_b = int(B) except: return 'NG' if not 0 <= num_a <= 12345: return 'NG' if not 0 <= num_b <= 12345: return 'NG' return 'OK' def main(args): A = input().strip() B = input().strip() ans = solve(A, B) print(ans) if __name__ == '__main__': main(sys.argv[1:])