結果
| 問題 |
No.2843 Birthday Present Struggle
|
| コンテスト | |
| ユーザー |
MM
|
| 提出日時 | 2024-08-23 21:06:40 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 930 bytes |
| コンパイル時間 | 5,527 ms |
| コンパイル使用メモリ | 336,232 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-23 21:06:49 |
| 合計ジャッジ時間 | 7,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#include<bits/stdc++.h>
#include<atcoder/all>
#define chmin(x,y) (x) = min((x),(y))
#define chmax(x,y) (x) = max((x),(y))
using namespace std;
using namespace atcoder;
using ll = long long;
const ll mod = 998244353;
using mint = modint998244353;
using Graph = vector<vector<int>>;
const vector<int> dx ={1,0,-1,0}, dy = {0,1,0,-1};
// https://betrue12.hateblo.jp/entry/2020/09/22/194541
struct S{
int value;
int size;
};
using F = int;
const F ID = int(2e9);
S op(S a, S b){ return {a.value+b.value, a.size+b.size}; }
S e(){ return {0, 0}; }
S mapping(F f, S x){
if(f != ID) x.value = x.size * f;
return x;
}
F composition(F f, F g){ return (f == ID ? g : f); }
F id(){ return ID; }
int main() {
// input
int N; cin >> N;
int a1,a2,b1,b2,c1,c2;
cin >> a1 >> a2 >> b1 >> b2 >> c1 >> c2;
// output
cout << 4 << endl;
for(int i = 0; i < 4; i++){
cout << c1+dx[i] << " " << c2+dy[i] << endl;
}
}
MM