結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int sx[4] = { -1, 0, 1, 0 };
int sy[4] = { 0, -1, 0, 1 };

int main(void) {
	int n;
	cin >> n;

	vector<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++) {
		cout << c[0] + sx[i] << " " << c[1] + sy[i] << endl;
	}

	return 0;
}
0