結果
問題 |
No.2797 Square Tile
|
ユーザー |
|
提出日時 | 2024-06-28 23:19:30 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 4,504 ms |
コンパイル使用メモリ | 307,308 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 23:19:41 |
合計ジャッジ時間 | 5,838 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 21 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll=long long; int main() { int a,b; cin>>a>>b; int m=a*a+b*b; if(a<b)swap(a,b); for(int i=0;i<m;i++){ cout<<a*i%m<<" "<<i*b<<endl; } for(int i=0;i<m;i++){ cout<<(m-1+b*i)%m<<" "<<i*a<<endl; } return 0; }