結果
問題 |
No.3012 岩井星人グラフ
|
ユーザー |
![]() |
提出日時 | 2025-01-28 00:44:26 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 352 ms / 2,000 ms |
コード長 | 533 bytes |
コンパイル時間 | 4,095 ms |
コンパイル使用メモリ | 273,456 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-28 00:44:40 |
合計ジャッジ時間 | 13,045 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int x, y; cin >> x >> y; cout << x * y << ' ' << x * y << endl; // 丸い部分 rep(i, x) cout << i + 1 << ' ' << (i + 1) % x + 1 << endl; // 伸びてる部分 rep(i, x) { rep(j, y - 1) cout << i + 1 + x * j << ' ' << i + 1 + x * (j + 1) << endl; } return 0; }