結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2017-04-17 21:05:14 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 579 bytes |
コンパイル時間 | 2,300 ms |
コンパイル使用メモリ | 73,964 KB |
実行使用メモリ | 41,532 KB |
最終ジャッジ日時 | 2024-07-19 05:37:49 |
合計ジャッジ時間 | 4,389 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String cs0 = sc.nextLine(); String cs1 = sc.nextLine(); try { int a = Integer.parseInt(cs0); int b = Integer.parseInt(cs1); if (a <= 12345 && b <= 12345 && a >= 0 && b >= 0 && Integer.toString(a).length() <= 5 && Integer.toString(b).length() <= 5) { System.out.println("OK"); }else{ System.out.println("NG"); } } catch (NumberFormatException e) { System.out.println("NG"); } } }