結果
| 問題 |
No.1121 Social Distancing in Cinema
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-23 21:46:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,071 bytes |
| コンパイル時間 | 885 ms |
| コンパイル使用メモリ | 89,212 KB |
| 実行使用メモリ | 8,320 KB |
| 最終ジャッジ日時 | 2024-07-19 16:35:56 |
| 合計ジャッジ時間 | 9,019 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 9 WA * 38 |
ソースコード
#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
#include<utility>
using namespace std;
#define int long long
#define endl "\n"
constexpr long long INF = (long long)1e18;
constexpr long long MOD = 1'000'000'007;
struct fast_io {
fast_io(){
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
};
} fio;
signed main(){
cout<<fixed<<setprecision(10);
int N;
vector<vector<vector<pair<int,int>>>> c(9, vector<vector<pair<int,int>>>(10));
cin>>N;
for(int i = 0; i < N; i++){
int x, y;
cin>>x>>y;
x = (x%18+18)%18;
y = (y%9+9)%9;
if(x%18 < 9) {
c[x%18][y%10].emplace_back(x,y);
} else {
c[x-9][(y+5)%10].emplace_back(x,y);
}
}
for(int i = 0; i< c.size(); i++){
for(int j = 0; j < c[i].size(); j++){
if(c[i][j].size() * 90 >= N) {
cout<<c[i][j].size()<<endl;
for(int k = 0; k < c[i][j].size(); k++){
if(k) cout<<" ";
cout<<c[i][j][k].first<<" "<<c[i][j][k].second;
}
cout<<endl;
return 0;
}
}
}
return 0;
}