結果

問題 No.769 UNOシミュレータ
ユーザー tailstails
提出日時 2018-12-16 22:38:52
言語 Perl
(5.38.2)
結果
AC  
実行時間 491 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 49,984 KB
最終ジャッジ日時 2023-08-14 11:52:40
合計ジャッジ時間 4,861 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,816 KB
testcase_01 AC 2 ms
4,528 KB
testcase_02 AC 2 ms
4,596 KB
testcase_03 AC 3 ms
4,740 KB
testcase_04 AC 4 ms
4,868 KB
testcase_05 AC 4 ms
4,868 KB
testcase_06 AC 4 ms
4,704 KB
testcase_07 AC 4 ms
4,936 KB
testcase_08 AC 4 ms
4,816 KB
testcase_09 AC 19 ms
6,240 KB
testcase_10 AC 19 ms
6,056 KB
testcase_11 AC 19 ms
6,092 KB
testcase_12 AC 166 ms
19,744 KB
testcase_13 AC 164 ms
19,656 KB
testcase_14 AC 167 ms
19,496 KB
testcase_15 AC 325 ms
34,604 KB
testcase_16 AC 326 ms
34,624 KB
testcase_17 AC 327 ms
34,548 KB
testcase_18 AC 487 ms
49,908 KB
testcase_19 AC 491 ms
49,984 KB
testcase_20 AC 487 ms
49,932 KB
testcase_21 AC 490 ms
49,940 KB
testcase_22 AC 3 ms
4,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>+0;
$r=1;
for(<>){
	$i=($i+($r*=1-2*/v/)*(/k/+1))%$n for$p;
	$a[$i]-=$d,$d=0,redo if$d&&!/$p/;
	++$a[$i];
	$d+=/t/*2+/f/*4;
	$p=$_;
}
print$i||$n,$",$a[$i];
0