Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701
LHL24_Linh
Lê Gia Linh - LHL
0 0

I'm Linh, học sinh trường THCS Lê Hữu Lập
Nick khác : Lee Gia Linh

39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0

Tôi là NPP_Oi mong mọi người giúp đỡ

39701 0 0
39701 0 0
39701 0 0
39701
ghuy4g 1591
Vũ Gia Huy
0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0

hi

39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0

include <bits/stdc++.h>

using namespace std;
bool snt(long long x)
{
if(x<2) return false;
if(x==2) return true;
if(x%2==0) return false;
for(long long i=3;i*i<=x;i+=2)
if(x%i==0) return false;
return true;
}
long long t,n;
long long dem=0;
int main()
{
cin>>t;
for(long long i=1;i<=t;i++)
{
cin>>n;
for(long long i=1;;i++)
{
if(snt(i)&&(i+3)%8==0)
{
dem++;
if(dem==n)
{
cout<<i<<" "<<i+3<<endl;
break;
}
}
}
}
return 0;
}

39701 0 0
39701 0 0
39701 0 0
39701
anhtaiynm444
anhtai7b2
0 0
39701 0 0
39701 0 0

nigga

39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0

include<bits/stdc++.h>

using namespace std;

int main() {
int n;
cin >> n;
int sum = n * (n + 1) / 2;
if (sum % 2 != 0) {
cout << "NO" << endl;
} else {
cout << "YES" << endl;
vector<int> set1, set2;
sum /= 2;
for (int i = n; i >= 1; i--) {
if (i <= sum) {
set1.push_back(i);
sum -= i;
} else {
set2.push_back(i);
}
}
cout << set1.size() << endl;
for (int i = 0; i < set1.size(); i++) {
cout << set1[i] << " ";
}
cout << endl;
cout << set2.size() << endl;
for (int i = 0; i < set2.size(); i++) {
cout << set2[i] << " ";
}
}
return 0;
}

39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0
39701 0 0