結果
| 問題 |
No.2843 Birthday Present Struggle
|
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2024-08-23 21:09:16 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 464 bytes |
| コンパイル時間 | 1,082 ms |
| コンパイル使用メモリ | 91,748 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-23 21:09:19 |
| 合計ジャッジ時間 | 2,745 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#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;
}
}
テナガザル