結果
問題 |
No.2843 Birthday Present Struggle
|
ユーザー |
![]() |
提出日時 | 2025-03-10 16:13:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 1,772 ms |
コンパイル使用メモリ | 163,500 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-10 16:13:13 |
合計ジャッジ時間 | 4,173 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for(ll i = 0; i < n; i++) int main() { int N, ax, ay, bx, by, cx, cy; cin >> N >> ax >> ay >> bx >> by >> cx >> cy; cout << 4 << endl; vector<int> dy{1, -1, 0, 0}, dx{0, 0, 1, -1}; rep(i, 4) { int nx = cx + dx[i]; int ny = cy + dy[i]; cout << nx << " " << ny << endl; } }