結果
| 問題 |
No.2843 Birthday Present Struggle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-24 17:20:52 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 550 bytes |
| コンパイル時間 | 3,692 ms |
| コンパイル使用メモリ | 84,072 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-08-24 17:20:58 |
| 合計ジャッジ時間 | 3,920 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#pragma GCC optimize("O2")
#ifdef local
#include <C++/core/io/debug_print.hpp>
#else
#define dump(...) void(0)
#endif
#include <iostream>
#include <cassert>
constexpr int dx[] = {0, 0, -1, 1};
constexpr int dy[] = {-1, 1, 0, 0};
int main() {
int n;
std::cin >> n;
std::pair<int, int> a, b, c;
std::cin >> a.first >> a.second >> b.first >> b.second >> c.first >> c.second;
assert(n >= 4);
std::cout << 4 << '\n';
for(int i = 0; i < 4; ++i) {
std::cout << c.first + dx[i] << ' ' << c.second + dy[i] << '\n';
}
}