結果

問題 No.2796 Small Matryoshka
ユーザー tailstails
提出日時 2024-06-28 22:38:50
言語 cLay
(20240420-1)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 4,987 ms
コンパイル使用メモリ 209,360 KB
実行使用メモリ 12,960 KB
最終ジャッジ日時 2024-06-28 22:38:57
合計ジャッジ時間 6,248 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 4 ms
6,940 KB
testcase_06 AC 17 ms
12,960 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 AC 13 ms
10,128 KB
testcase_09 AC 19 ms
12,544 KB
testcase_10 AC 19 ms
11,776 KB
testcase_11 AC 18 ms
11,648 KB
testcase_12 AC 4 ms
6,944 KB
testcase_13 AC 1 ms
6,948 KB
testcase_14 AC 4 ms
7,240 KB
testcase_15 AC 2 ms
6,940 KB
testcase_16 AC 3 ms
6,940 KB
testcase_17 AC 13 ms
10,040 KB
testcase_18 AC 14 ms
10,168 KB
testcase_19 AC 5 ms
8,684 KB
testcase_20 AC 7 ms
7,492 KB
testcase_21 AC 12 ms
9,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,a[2n],b=0,z=0;
rep(i,2n){
	ll@r;
	a[i]=2r-i%2;
}
sortA(2n,a);
rep(i,2n){
	if(a[i]&1){
		--b;
	}else{
		z>?=++b;
	}
}
wt(z-1);
0