luyencode / comments

Server lưu trữ bình luận trên Luyện Code
https://luyencode.net
6 stars 3 forks source link

https://oj.luyencode.net/problem/INV2X #814

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Đếm cặp - Luyện Code Online

https://oj.luyencode.net/problem/INV2X

AnnNaa0511 commented 2 years ago

Merge sort là accept

danh2006 commented 2 years ago

Đây là lời giải của mình đã AC. Nếu bạn đã cố gắng mà chưa làm được thì có thể tham khảo lời giải của mình.

Xem code AC

#include #define ll long long using namespace std; int a[10000]; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ll n; cin >> n; for(ll i=0;i> a[i]; } ll cnt = 0; for(ll i=0;i2*a[j]){ cnt++; } } } cout << cnt << endl; }