結果
| 問題 | No.3012 岩井星人グラフ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 04:31:40 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 1,993 ms |
| コンパイル使用メモリ | 176,192 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 04:31:51 |
| 合計ジャッジ時間 | 9,281 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void){
int x, y; cin >> x >> y;
vector<P> ans;
int c=x+1;
for(int i=1; i<=x; i++){
int pre=i;
for(int j=0; j<y; j++){
ans.emplace_back(pre, c);
pre=c, c++;
}
}
cout << c-1 << endl;
for(auto [u, v]:ans) cout << u << ' ' << v << endl;
return 0;
}