P2 隨機序列 - Random Sequence Generator
unknown
c_cpp
2 years ago
329 B
5
Indexable
#include <iostream>
using namespace std;
int N;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> N;
cout << 2*N*N + 1 << "\n";
for(int i = 0; i < N; ++i)
for(int j = 0; j < N; ++j)
cout << i << " " << j << " ";
cout << 0 << "\n";
}Editor is loading...