結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
htensai
|
| 提出日時 | 2019-12-19 13:46:04 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 649 bytes |
| コンパイル時間 | 2,138 ms |
| コンパイル使用メモリ | 75,228 KB |
| 実行使用メモリ | 37,164 KB |
| 最終ジャッジ日時 | 2024-07-07 01:08:50 |
| 合計ジャッジ時間 | 3,761 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
import java.util.*;
import java.io.*;
public class Main {
static final int MOD = 1000000007;
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
for (int i = 0; i < 2; i++) {
String a = br.readLine();
int x = Integer.parseInt(a);
if (!a.equals(String.valueOf(x)) || x > 12345) {
throw new Exception();
}
}
System.out.println("OK");
} catch(Exception e) {
System.out.println("NG");
}
}
}
htensai