結果

問題 No.2843 Birthday Present Struggle
コンテスト
ユーザー テナガザル
提出日時 2024-08-23 21:09:16
言語 C++23
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 701µs
コード長 464 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,194 ms
コンパイル使用メモリ 168,376 KB
実行使用メモリ 9,896 KB
最終ジャッジ日時 2026-10-31 23:41:17
合計ジャッジ時間 3,541 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge7_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
  const int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
  int n;
  cin >> n;
  int a[2], b[2], c[2];
  for (int i = 0; i < 2; ++i) cin >> a[i];
  for (int i = 0; i < 2; ++i) cin >> b[i];
  for (int i = 0; i < 2; ++i) cin >> c[i];
  cout << 4 << endl;
  for (int i = 0; i < 4; ++i)
  {
    int x = c[0] + dx[i], y = c[1] + dy[i];
    cout << x << ' ' << y << endl;
  }
}
0