結果

問題 No.2843 Birthday Present Struggle
ユーザー Tatsu_mr
提出日時 2024-08-23 21:54:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 1,926 ms
コンパイル使用メモリ 195,788 KB
最終ジャッジ日時 2025-02-23 23:42:46
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

vector<int> di = {-1, 0, 1, 0};
vector<int> dj = {0, 1, 0, -1};

int main() {
    int n, ax, ay, bx, by, cx, cy;
    cin >> n >> ax >> ay >> bx >> by >> cx >> cy;
    cout << 4 << endl;
    for (int i = 0; i < 4; i++) {
        cout << cx + di[i] << " " << cy + dj[i] << endl;
    }
}
0