restructure zeta/** to storage/zeta/**

This commit is contained in:
2025-05-10 21:54:24 +09:00
parent 2886820691
commit 2f2e0759fd
407 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
#include <iostream>
using namespace std;
void add_paper(int P[], int x, int y) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
P[(x - 1 + i) * 100 + y - 1 + j] = 1;
}
}
}
int main() {
int Paper[100 * 100] = {0,};
int N;
cin >> N;
int _x, _y;
for (int i = 0; i < N; i++) {
cin >> _x >> _y;
add_paper(Paper, _x, _y);
}
int A = 0;
for (int i = 0; i < 10000; i++) {
A += Paper[i];
}
cout << A;
return 0;
}