結果

問題 No.2843 Birthday Present Struggle
ユーザー kentikenti
提出日時 2024-08-23 21:16:32
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 836 ms
コンパイル使用メモリ 80,820 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-23 21:16:36
合計ジャッジ時間 2,656 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int N;
int a[2], b[2], c[2];
const int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, -1, 0, 1};

int main() {
    cin >> N;
    cin >> a[0] >> a[1] >> b[0] >> b[1] >> c[0] >> c[1];
    cout << 4 << endl;
    for (int i = 0; i < 4; i++)
        cout << c[0] + dx[i] << " " << c[1] + dy[i] << endl;
    return 0;
}
0