結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
7,788 KB
testcase_01 AC 23 ms
7,180 KB
testcase_02 AC 20 ms
6,772 KB
testcase_03 AC 27 ms
7,952 KB
testcase_04 AC 13 ms
8,284 KB
testcase_05 AC 1 ms
5,000 KB
testcase_06 AC 6 ms
7,408 KB
testcase_07 AC 16 ms
8,156 KB
testcase_08 AC 15 ms
8,248 KB
testcase_09 AC 1 ms
4,996 KB
testcase_10 AC 2 ms
5,064 KB
testcase_11 AC 4 ms
5,000 KB
testcase_12 AC 4 ms
5,000 KB
testcase_13 AC 4 ms
5,064 KB
testcase_14 AC 16 ms
6,408 KB
testcase_15 AC 27 ms
8,104 KB
testcase_16 AC 2 ms
5,000 KB
testcase_17 AC 22 ms
7,108 KB
testcase_18 AC 2 ms
5,068 KB
testcase_19 AC 20 ms
7,092 KB
testcase_20 AC 2 ms
5,000 KB
testcase_21 AC 2 ms
5,000 KB
testcase_22 AC 2 ms
5,060 KB
testcase_23 AC 1 ms
4,996 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)-b]=x=a[d&1?n+~i:i]*(d%3?-1:1),c[d*n+i]=r+=r==k;r=0;}r>?=min(c[0..2n],c[4n-(1..)]);wt(r-1);}
0