結果

問題 No.1188 レベルX門松列
ユーザー tailstails
提出日時 2020-09-01 17:39:46
言語 cLay
(20240104-1)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 2,154 ms
コンパイル使用メモリ 160,872 KB
実行使用メモリ 10,076 KB
最終ジャッジ日時 2023-09-19 01:05:12
合計ジャッジ時間 5,258 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
9,684 KB
testcase_01 AC 23 ms
9,692 KB
testcase_02 AC 21 ms
9,504 KB
testcase_03 AC 27 ms
9,700 KB
testcase_04 AC 13 ms
9,640 KB
testcase_05 AC 2 ms
7,576 KB
testcase_06 AC 6 ms
9,524 KB
testcase_07 AC 15 ms
9,596 KB
testcase_08 AC 15 ms
9,544 KB
testcase_09 AC 2 ms
7,368 KB
testcase_10 AC 3 ms
7,484 KB
testcase_11 AC 5 ms
7,736 KB
testcase_12 AC 4 ms
7,648 KB
testcase_13 AC 5 ms
7,712 KB
testcase_14 AC 17 ms
9,332 KB
testcase_15 AC 28 ms
10,076 KB
testcase_16 AC 2 ms
7,516 KB
testcase_17 AC 22 ms
9,780 KB
testcase_18 AC 2 ms
7,372 KB
testcase_19 AC 21 ms
9,800 KB
testcase_20 AC 3 ms
7,416 KB
testcase_21 AC 2 ms
7,416 KB
testcase_22 AC 2 ms
7,416 KB
testcase_23 AC 2 ms
7,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,k,r,x,a[1d5],b[1d5],c[4d5];{rd(n,a(n));rep(d,4){rep(i,n)b[k=lower_bound(b,b+r,x=a[d&1?n+~i:i]^-!(d%3))-b]=x,c[d*n+i]=r+=r==k;r=0;}r>?=min(c[0..2n],c[4n-(1..)]);wt(r-1);}
0