結果
| 問題 | No.304 鍵(1) |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-11 23:21:06 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 512 bytes |
| 記録 | |
| コンパイル時間 | 1,407 ms |
| コンパイル使用メモリ | 85,296 KB |
| 実行使用メモリ | 48,796 KB |
| 平均クエリ数 | 310.17 |
| 最終ジャッジ日時 | 2026-08-14 07:26:55 |
| 合計ジャッジ時間 | 3,917 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 6 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int num = 0;
String key = "";
while (true) {
String s = "";
if (num <= 9) {
s += "00";
s += num;
}
else if (10<=num && num<=99) {
s += "0";
s += num;
}
else {
s += num;
}
System.out.println(s);
String result = sc.next();
if (result.equals("unlocked")) {
key = s;
break;
}
num++;
}
System.out.println(key);
}
}
Tsukasa_Type