結果

問題 No.241 出席番号(1)
ユーザー tailstails
提出日時 2015-07-10 23:00:39
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,712 KB
最終ジャッジ日時 2023-09-22 10:03:37
合計ジャッジ時間 1,946 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,420 KB
testcase_01 AC 3 ms
4,508 KB
testcase_02 AC 2 ms
4,556 KB
testcase_03 AC 3 ms
4,640 KB
testcase_04 AC 3 ms
4,572 KB
testcase_05 AC 3 ms
4,420 KB
testcase_06 AC 3 ms
4,428 KB
testcase_07 AC 3 ms
4,424 KB
testcase_08 AC 3 ms
4,560 KB
testcase_09 AC 3 ms
4,508 KB
testcase_10 AC 3 ms
4,640 KB
testcase_11 AC 3 ms
4,508 KB
testcase_12 AC 2 ms
4,580 KB
testcase_13 AC 3 ms
4,552 KB
testcase_14 AC 2 ms
4,524 KB
testcase_15 AC 2 ms
4,456 KB
testcase_16 AC 3 ms
4,508 KB
testcase_17 AC 2 ms
4,616 KB
testcase_18 WA -
testcase_19 AC 3 ms
4,612 KB
testcase_20 AC 3 ms
4,508 KB
testcase_21 AC 3 ms
4,572 KB
testcase_22 AC 2 ms
4,592 KB
testcase_23 AC 3 ms
4,444 KB
testcase_24 AC 2 ms
4,560 KB
testcase_25 AC 3 ms
4,452 KB
testcase_26 AC 3 ms
4,612 KB
testcase_27 AC 2 ms
4,428 KB
testcase_28 AC 3 ms
4,512 KB
testcase_29 AC 3 ms
4,560 KB
testcase_30 AC 2 ms
4,636 KB
testcase_31 AC 2 ms
4,512 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@a=<>;
hoge:for$i(0..$n-1){
	for$j(0..$n-1){
		$a[$j]!=($i+$j)%$n or next hoge;
	}
	for$j(0..$n-1){
		print+($i+$j)%$n,$/;
	}
	exit;
}
print -1;
0