結果
問題 | No.694 square1001 and Permutation 3 |
ユーザー |
![]() |
提出日時 | 2018-06-15 19:00:20 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 98 ms / 3,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 5,937 ms |
コンパイル使用メモリ | 217,628 KB |
実行使用メモリ | 23,168 KB |
最終ジャッジ日時 | 2024-07-05 13:06:04 |
合計ジャッジ時間 | 10,120 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 |
ソースコード
ll r,n,a[6d5];fenwick<int>t;{rd(n,a(n));coordcomp(n,a);t.walloc(n);t.init(n);rep(i,n)r+=i-t.get(a[i]),t.add(a[i],1);rep(i,n)wt(r),r+=n-t.get(a[i])-t.get(a[i]-1);}