Open utterances-bot opened 2 years ago
https://oj.luyencode.net/problem/INV2X
Merge sort là accept
Đâ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.
#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; }
Đếm cặp - Luyện Code Online
https://oj.luyencode.net/problem/INV2X