結果
問題 | No.304 鍵(1) |
ユーザー | YamaKasa |
提出日時 | 2018-05-21 16:07:12 |
言語 | Java21 (openjdk 21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 1,790 ms |
コンパイル使用メモリ | 71,408 KB |
実行使用メモリ | 83,784 KB |
最終ジャッジ日時 | 2023-09-23 16:02:35 |
合計ジャッジ時間 | 8,293 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String ans = scan.next(); boolean flag = true; while(flag) { String t = scan.next(); if(t.equals(ans)) { System.out.println("unlocked"); flag = false; }else { System.out.println("locled"); } } scan.close(); } }