結果

問題 No.304 鍵(1)
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-18 11:42:37
言語 Java21
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 344 bytes
コンパイル時間 2,127 ms
コンパイル使用メモリ 72,092 KB
実行使用メモリ 156,308 KB
最終ジャッジ日時 2023-09-24 00:42:55
合計ジャッジ時間 8,630 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Question304
{
	public static void main(String[] str)
	{
	
		Scanner scan = new Scanner(System.in);
		
		int code = scan.nextInt();
		
		while(true){
			int input = scan.nextInt();
			
			if(input == code){
				System.out.println("unlocked");	break;
			}
			else{
				System.out.println("locked");
			}
			
		}
		
	}
}
0