#include <bits/stdc++.h>
using namespace std;
int main()
{
int N = 1000;
cout << N << "\n";
vector <pair <int, int> > res;
int cd = 0;
for (int i = 0; i < 7; i++)
{
int cjump = 1, ccnt = 1;
for (int j = 0; j < i; j++)
ccnt *= 3;
for (int j = i; j < 6; j++)
cjump *= 3;
for (int j = -ccnt / 2; j <= ccnt / 2; j++)
{
res.push_back(make_pair (cd, 500 + j * cjump));
}
cd += (cjump / 3);
}
for (int i = 0; i < 1000; i++)
cout << res[i].first + 1 << " " << res[i].second + 1 << "\n";
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
0 KB |
Expected integer, but "#include" found |