結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
あsdf
|
| 提出日時 | 2017-04-17 21:00:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 579 bytes |
| コンパイル時間 | 1,895 ms |
| コンパイル使用メモリ | 74,708 KB |
| 実行使用メモリ | 41,660 KB |
| 最終ジャッジ日時 | 2024-07-19 05:37:38 |
| 合計ジャッジ時間 | 4,135 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 8 WA * 5 |
ソースコード
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");
}
}
}
あsdf