結果

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

ソースコード

diff #

#include<iostream>
#include<cassert>
using namespace std;
int N;
int x[3],y[3];
const int d[5]={0,1,0,-1};
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cin>>N;
	for(int i=0;i<3;i++)cin>>x[i]>>y[i];
	cout<<4<<endl;
	for(int r=0;r<4;r++)cout<<x[2]+d[r]<<" "<<y[2]+d[r+1]<<endl;
}
0