結果

問題 No.2719 Equal Inner Products in Permutation
ユーザー 👑 p-adicp-adic
提出日時 2024-04-06 00:44:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 2,256 ms
コンパイル使用メモリ 176,328 KB
実行使用メモリ 23,168 KB
最終ジャッジ日時 2024-04-06 00:44:20
合計ジャッジ時間 7,642 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 1 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 2 ms
6,676 KB
testcase_12 AC 2 ms
6,676 KB
testcase_13 AC 3 ms
6,676 KB
testcase_14 AC 2 ms
6,676 KB
testcase_15 AC 23 ms
20,096 KB
testcase_16 AC 30 ms
22,144 KB
testcase_17 AC 17 ms
15,360 KB
testcase_18 AC 26 ms
22,400 KB
testcase_19 AC 23 ms
19,200 KB
testcase_20 AC 17 ms
14,336 KB
testcase_21 AC 27 ms
22,528 KB
testcase_22 AC 20 ms
17,280 KB
testcase_23 AC 19 ms
16,128 KB
testcase_24 AC 16 ms
14,080 KB
testcase_25 AC 29 ms
23,168 KB
testcase_26 AC 30 ms
23,168 KB
testcase_27 AC 28 ms
23,168 KB
testcase_28 AC 28 ms
23,168 KB
testcase_29 AC 27 ms
23,168 KB
testcase_30 AC 28 ms
23,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,i=N%3,b=i<2,A[4N]={1,4-2b,4,11},B[4N]={3+4b,6+3b,10,12},C[4N]={5+3b,2+3b,6,3};if(N<2)wt(-1);else{i+=(i==1)*3-1;while(++i<N)A[i]=3i+1,B[i]=3i+6,C[i]=3i+3,++i,A[i]=3i-1,B[i]=3i+5,C[i]=3i+1,++i,A[i]=3i+3,B[i]=3i+1,C[i]=3i-1;wt(A(N),B(N),C(N));}
0