結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-11 01:22:47 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 77 ms / 2,000 ms |
| + 652µs | |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 1,487 ms |
| コンパイル使用メモリ | 85,492 KB |
| 実行使用メモリ | 47,456 KB |
| 最終ジャッジ日時 | 2026-10-11 21:25:49 |
| 合計ジャッジ時間 | 3,931 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
String a = sc.next();
String b = sc.next();
if (judge(a)==true && judge(b)==true) {System.out.println("OK");}
else {System.out.println("NG");}
}
static boolean judge (String s) {
boolean b = false;
for (int i=0; i<=12345; i++) {
if (s.equals(String.valueOf(i))) {b = true;}
}
return b;
}
}
Tsukasa_Type