結果
問題 | No.304 鍵(1) |
ユーザー |
![]() |
提出日時 | 2016-06-02 03:11:34 |
言語 | Java (openjdk 23) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 728 bytes |
コンパイル時間 | 3,071 ms |
コンパイル使用メモリ | 75,560 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 23:54:19 |
合計ジャッジ時間 | 9,439 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 5 |
ソースコード
import java.util.*; import java.io.*; public class Exercise46{ public static void main (String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = new String(in.readLine()); String[] num = new String[1000]; for (int i = 0; i < 1000; i++){ if(i < 10){ num[i] = "00" + i; }else if(i > 9 && i < 100){ num[i] = "0" + i; }else{ num[i] = String.valueOf(i); } } int a = 0; while (true){ System.out.println(num[a]); System.out.flush(); String result = new String(in.readLine()); if (result == "unlocked"){ break; }else{ a++; } } } }