結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| コンテスト | |
| ユーザー |
atkrym
|
| 提出日時 | 2016-12-28 10:44:08 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 804 bytes |
| コンパイル時間 | 2,159 ms |
| コンパイル使用メモリ | 74,568 KB |
| 実行使用メモリ | 50,228 KB |
| 最終ジャッジ日時 | 2024-12-15 07:34:32 |
| 合計ジャッジ時間 | 4,996 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 13 |
ソースコード
import java.util.*;
import java.math.*;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
String a = sc.next();
String b = sc.next();
int ai = 0;
int bi = 0;
try {
ai = Integer.parseInt(a);
bi = Integer.parseInt(b);
} catch (Exception e) {
System.out.println("NO");
return;
}
if ((a.length()!=1&&a.indexOf("0")==0)||(b.length()!=1&&b.indexOf("0")==0)) {
System.out.println("NO");
return;
}
if (ai>12345||bi>12345) {
System.out.println("NO");
return;
}
System.out.println("YES");
}
}
atkrym