結果

問題 No.743 Segments on a Polygon
ユーザー tailstails
提出日時 2020-07-01 11:00:36
言語 cLay
(20240104-1)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 5,367 ms
コンパイル使用メモリ 216,324 KB
実行使用メモリ 10,204 KB
最終ジャッジ日時 2023-09-19 00:42:26
合計ジャッジ時間 7,776 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
10,020 KB
testcase_01 AC 16 ms
10,136 KB
testcase_02 AC 17 ms
10,120 KB
testcase_03 AC 16 ms
10,072 KB
testcase_04 AC 16 ms
10,072 KB
testcase_05 AC 17 ms
10,204 KB
testcase_06 AC 17 ms
10,024 KB
testcase_07 AC 17 ms
10,064 KB
testcase_08 AC 16 ms
10,104 KB
testcase_09 AC 11 ms
10,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fenwick<ll>f;ll n,m,a[1d5],b[1d5],c;{rd(n,m,(a,b)(n));rep(i,n)sortE(a[i],b[i]);sortA(n,a,b);f.walloc(m,1);rep(i,n)c+=f.range(a[i],b[i]),f.add(b[i],1);wt(c);}
0