結果

問題 No.2710 How many more?
ユーザー tailstails
提出日時 2024-04-01 10:59:02
言語 cLay
(20240104-1)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 6,692 ms
コンパイル使用メモリ 219,536 KB
実行使用メモリ 12,448 KB
最終ジャッジ日時 2024-04-01 10:59:10
合計ジャッジ時間 8,207 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,488 KB
testcase_01 AC 2 ms
7,488 KB
testcase_02 AC 15 ms
11,748 KB
testcase_03 AC 12 ms
11,644 KB
testcase_04 AC 13 ms
12,008 KB
testcase_05 AC 8 ms
8,896 KB
testcase_06 AC 11 ms
11,768 KB
testcase_07 AC 6 ms
8,128 KB
testcase_08 AC 6 ms
8,384 KB
testcase_09 AC 14 ms
11,880 KB
testcase_10 AC 9 ms
9,024 KB
testcase_11 AC 11 ms
9,152 KB
testcase_12 AC 18 ms
12,248 KB
testcase_13 AC 20 ms
12,448 KB
testcase_14 AC 20 ms
12,448 KB
testcase_15 AC 21 ms
12,448 KB
testcase_16 AC 20 ms
12,448 KB
testcase_17 AC 21 ms
12,448 KB
testcase_18 AC 3 ms
7,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@q,@a[n];
coordcomp(n,a);
fenwick<ll>f;
f.malloc(n,1);
f.add(a[0..n-1],1);
rep(q){
	ll@x,@y;
	wt(f.range(a[y-1]+1,a[x-1]-1));
}
0