結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, a, b) for(ll i = a; i < b; ++i)
#define rrep(i, a, b) for(ll i = a; i >= b; --i)
constexpr ll inf = 4e18;
struct SetupIO {
    SetupIO() {
        ios::sync_with_stdio(0);
        cin.tie(0);
        cout << fixed << setprecision(30);
    }
} setup_io;
using dd = long double;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<dd>;
using vvd = vector<vd>;


int main(void) {
    ll n;cin>>n;
    vl a(2), b(2), c(2);
    cin>>a[0]>>a[1];
    cin>>b[0]>>b[1];
    cin>>c[0]>>c[1];
    cout << 4 << endl;
    cout << c[0]-1 << " " << c[1] << endl;
    cout << c[0]+1 << " " << c[1] << endl;
    cout << c[0] << " " << c[1]-1 << endl;
    cout << c[0] << " " << c[1]+1 << endl;

    return 0;
}
0