結果
問題 |
No.2843 Birthday Present Struggle
|
ユーザー |
|
提出日時 | 2024-08-24 00:56:29 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 3,281 ms |
コンパイル使用メモリ | 268,084 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-08-24 00:56:37 |
合計ジャッジ時間 | 7,591 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 14 WA * 20 |
ソースコード
#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; int N,x[3],y[3]; int dh[3]={-1,0,1},dw[3]={-1,0,1}; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); cout<<fixed<<setprecision(15); cin>>N; cout<<8<<endl; for(int i=0;i<3;i++)cin>>x[i]>>y[i]; for(int i=0;i<3;i++)for(int j=0;j<3;j++){ if(dh[i]==0&&dw[j]==0)continue; cout<<x[2]+dh[i]<<" "<<y[2]+dw[j]<<endl; } }