結果

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

ソースコード

diff #

#include <bits/stdc++.h>

void solve() {
  int N, ax, ay, bx, by, cx, cy; std::cin >> N >> ax >> ay >> bx >> by >> cx >> cy;
  std::cout << "4\n";
  int d[] = {1, 0, -1, 0, 1};
  for (int i = 0; i < 4; i++) {
    std::cout << cx+d[i] << " " << cy+d[i+1] << "\n";
  }
}

int main() {
  std::ios::sync_with_stdio(false);
	std::cin.tie(nullptr);

  int testcases = 1;
  //std::cin >> testcases;
  for (;testcases--;) solve();

  return 0;
}
0