結果

問題 No.1188 レベルX門松列
ユーザー tailstails
提出日時 2020-09-01 17:35:40
言語 cLay
(20240104-1)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 1,828 ms
コンパイル使用メモリ 161,064 KB
実行使用メモリ 10,060 KB
最終ジャッジ日時 2023-09-19 01:05:16
合計ジャッジ時間 3,222 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
9,756 KB
testcase_01 AC 23 ms
9,660 KB
testcase_02 AC 21 ms
9,580 KB
testcase_03 AC 27 ms
9,888 KB
testcase_04 AC 13 ms
9,792 KB
testcase_05 AC 2 ms
7,444 KB
testcase_06 AC 6 ms
9,472 KB
testcase_07 AC 15 ms
9,524 KB
testcase_08 AC 15 ms
9,768 KB
testcase_09 AC 3 ms
7,368 KB
testcase_10 AC 3 ms
7,380 KB
testcase_11 AC 4 ms
7,620 KB
testcase_12 AC 4 ms
7,620 KB
testcase_13 AC 4 ms
7,652 KB
testcase_14 AC 17 ms
9,344 KB
testcase_15 AC 27 ms
10,060 KB
testcase_16 AC 3 ms
7,444 KB
testcase_17 AC 22 ms
9,720 KB
testcase_18 AC 1 ms
7,356 KB
testcase_19 AC 21 ms
9,800 KB
testcase_20 AC 2 ms
7,400 KB
testcase_21 AC 2 ms
7,348 KB
testcase_22 AC 3 ms
7,452 KB
testcase_23 AC 3 ms
7,352 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?-1:1))-b]=x,c[d*n+i]=r+=r==k;r=0;}r>?=min(c[0..2n],c[4n-(1..)]);wt(r-1);}
0