結果
| 問題 |
No.2843 Birthday Present Struggle
|
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2024-08-24 01:30:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 452 bytes |
| コンパイル時間 | 2,089 ms |
| コンパイル使用メモリ | 193,680 KB |
| 最終ジャッジ日時 | 2025-02-24 00:33:18 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#include <bits/stdc++.h>
int main(){
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
int N;
std::cin >> N;
int ax, ay, bx, by, cx, cy;
std::cin >> ax >> ay >> bx >> by >> cx >> cy;
int M = 4;
std::cout << M << std::endl;
const int dx[] = {-1, 1, 0, 0}, dy[] = {0, 0, -1, 1};
for(int i=0;i<4;i++){
int x = cx + dx[i], y = cy + dy[i];
std::cout << x << " " << y << std::endl;
}
}
tottoripaper