0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-08 15:58:48 +00:00

#13340. 「NOIP2022模拟赛1111」摆放石子

http://www.nfls.com.cn:10611/submission/238467
This commit is contained in:
Baoshuo Ren 2022-11-12 10:49:32 +08:00
parent 5dbb58bc78
commit 5b3f8f9672
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
153 changed files with 530 additions and 0 deletions

74
NFLSOJ/13340/13340.cpp Normal file
View File

@ -0,0 +1,74 @@
// #include <iostream>
#include <fstream>
// using std::cin;
// using std::cout;
std::ifstream cin("stone.in");
std::ofstream cout("stone.out");
const char endl = '\n';
int n;
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> n;
if (n == 1) {
cout << "YES" << endl
<< 1 << ' ' << 1 << endl;
} else if (n % 4 == 0) {
int k = n / 4;
cout << "YES" << endl;
for (int i = 1; i <= k; i++) {
cout << i << ' ' << n - i + 1 << endl;
}
for (int i = k + 1; i <= 2 * k - 1; i++) {
cout << i << ' ' << n - i << endl;
}
cout << 2 * k << ' ' << 1 << endl;
for (int i = 2 * k + 1; i <= 3 * k - 1; i++) {
cout << i << ' ' << n - i + 1 << endl;
}
cout << 3 * k << ' ' << n - k << endl;
for (int i = 3 * k + 1; i <= 4 * k; i++) {
cout << i << ' ' << n - i + 2 << endl;
}
} else if (n % 4 == 1) {
int k = n / 4;
cout << "YES" << endl;
for (int i = 1; i <= k; i++) {
cout << i << ' ' << n - i + 1 << endl;
}
cout << k + 1 << ' ' << k + 2 << endl;
for (int i = k + 2; i <= 2 * k; i++) {
cout << i << ' ' << n - i + 2 << endl;
}
cout << 2 * k + 1 << ' ' << 1 << endl;
for (int i = 2 * k + 2; i <= 3 * k + 1; i++) {
cout << i << ' ' << n - i + 3 << endl;
}
for (int i = 3 * k + 2; i <= 4 * k + 1; i++) {
cout << i << ' ' << n - i + 2 << endl;
}
} else {
cout << "NO" << endl;
}
return 0;
}

BIN
NFLSOJ/13340/data/0-stone1.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/0-stone1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/0-stone2.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/0-stone2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone10.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone11.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone11.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone12.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone12.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone13.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone13.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone14.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone14.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone15.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone15.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone16.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone16.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone17.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone17.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone3.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone4.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone5.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone6.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone7.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone8.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone9.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/1-stone9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone18.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone18.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone19.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone19.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone20.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone20.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone21.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone21.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone22.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone22.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone23.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone23.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone24.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone24.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone25.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone25.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone26.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone26.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone27.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone27.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone28.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone28.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone29.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone29.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone30.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone30.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone31.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone31.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone32.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone32.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone33.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone33.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone34.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone34.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone35.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone35.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone36.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone36.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone37.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone37.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone38.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone38.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone39.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone39.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone40.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone40.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone41.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone41.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone42.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone42.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone43.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone43.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone44.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone44.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone45.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/2-stone45.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone46.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone46.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone47.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone47.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone48.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone48.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone49.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone49.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
NFLSOJ/13340/data/3-stone50.ans (Stored with Git LFS) Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More