結果

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

ソースコード

diff #

#include <iostream>
#include <array>
#include <vector>

using namespace std;

int main () {
    int N; cin >> N;
    array<int, 2> a, b, c;
    cin >> a[0] >> a[1];
    cin >> b[0] >> b[1];
    cin >> c[0] >> c[1];

    // 制約下でチャーリーの家囲める...笑

    cout << 4 << "\n";
    cout << c[0] + 1 << " " << c[1] << "\n";
    cout << c[0] - 1 << " " << c[1] << "\n";
    cout << c[0] << " " << c[1] + 1 << "\n";
    cout << c[0] << " " << c[1] - 1 << "\n";
}
0