結果

問題 No.1097 Remainder Operation
ユーザー tailstails
提出日時 2020-07-08 09:25:09
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 197 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 157,556 KB
最終ジャッジ日時 2024-04-14 07:35:29
合計ジャッジ時間 7,748 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
13,888 KB
testcase_01 AC 8 ms
6,944 KB
testcase_02 AC 11 ms
6,944 KB
testcase_03 AC 11 ms
6,940 KB
testcase_04 AC 11 ms
6,940 KB
testcase_05 AC 12 ms
6,940 KB
testcase_06 AC 11 ms
6,940 KB
testcase_07 AC 332 ms
21,376 KB
testcase_08 AC 331 ms
21,376 KB
testcase_09 AC 317 ms
21,376 KB
testcase_10 AC 323 ms
21,376 KB
testcase_11 AC 325 ms
21,376 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@0=glob<>;

for$i(0..38){
	for$j(0..$n-1){
		${$i+1}[$j]=$$i[$j]+$$i[($j+$$i[$j])%$n];
	}
}

for(1..<>){
	$k=<>;
	$a=0;
	for(0..39){
		if($k&1<<$_){
			$a+=$$_[$a%$n];
		}
	}
	print$a,$/;
}
0