結果
| 問題 | No.1097 Remainder Operation |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-07-08 09:25:09 |
| 言語 | Perl (5.40.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 5,888 KB |
| 実行使用メモリ | 146,256 KB |
| 最終ジャッジ日時 | 2024-10-03 04:45:50 |
| 合計ジャッジ時間 | 7,206 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 TLE * 1 -- * 10 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$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,$/;
}
tails