Rank Tên đăng nhập Điểm Bài tập Giới thiệu
10401 0 0
10402 200 1
10402 201 1

:))))))))))))))))))))))))))

10404 0 0
10404 0 0
10406 301 1

include <bits/stdc++.h>

using namespace std;
int n, m, a[1000005], res, d[1000005];
int main() {
cin >> n >> m;
for ( int i = 1; i <= n; i++ ) {
cin >> a[i];
d[a[i]]++;
}
sort ( a + 1, a + 1 + n );
for ( int i = n; i >1; i-- ) {
res=res+ upper_bound ( a + 1, a + i, m - a[i] )-a-1;
}
cout<<res;
}

10407 190 1
10408 301 1

L

10409 0 0
10410 301 1
10411 0 0
10412 3907 4
10413 2851 14
10414 0 0
10415 649 5
10416 1641 13
10417 0 0
10417 0 0
10417 0 0

include<iostream>

using namespace std;

int main(){
int x;
cin >> x;
cout << "So gap doi la : " << 2 * x;
return 0;
}

10420 101 1
10421 0 0
10422 7805 21
10423
giorzang
Vũ Trường Giang
7217 8
10424 301 1
10425 583 8
10426 215 2
10427 1288 7
10428 1832 2
10429 0 0
10429 0 0
10431 8014 18
10432 0 0
10432 0 0
10432 0 0
10435 5103 35
10436 0 0
10437 587 2
10438 0 0
10439 3318 23
10440 0 0
10441 1075 5

hihi

10442 0 0
10443 1343 2
10444 8437 35
10445 0 0
10446 14882 36
10447 101 1
10448 0 0
10448 0 0

[user: Akira]

10450 197 2
10451 0 0
10451 0 0
10453
Suseer
Dungaudam
3934 27
10454 0 0
10454 0 0
10454 0 0
10454 0 0
10454 0 0
10459 1965 4
10460 0 0
10461 488 3
10462 0 0
10462 0 0
10462 0 0

alo

10462 0 0
10462 0 0

Kẻ Vô Danh

10462 0 0
10468 101 1
10469 197 2
10470 0 0
10471 1314 10
10472 0 0
10473 125 2
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10474 0 0
10483 101 1
10484 7623 35
10485 101 1
10486
Hirobi
Trần Hữu Vũ Phương
25114 54
10487 301 1
10488 1803 9
10489 101 1

include <iostream>

using namespace std;
int main()
{
int i;

cin >> i;
long p[i], q[i];
for (int j = 0; j < i; j++)
{
    cin >> p[j];
}
for (int j = 0; j < i; j++)
{
    if (p[j] < 4 || p[j] % 2 == 1)
    {
        cout << "-1"<<endl;
        break;
    }
    if(p[j]%4==0)
    cout<<p[j]*p[j]/16<<endl;
    else cout<<(p[j]/4)*(p[j]/4+1)<<endl; 
}
return 0;

}

10490 0 0
10490 0 0
10492 14137 136
10493 0 0
10494 514 3
10495 0 0
10496 3099 12
10497 0 0
10498 5722 30
10499 0 0
10500 101 1