結果
| 問題 |
No.5007 Steiner Space Travel
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-30 14:55:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 1,606 bytes |
| コンパイル時間 | 1,077 ms |
| 実行使用メモリ | 3,536 KB |
| スコア | 1,785,274 |
| 最終ジャッジ日時 | 2022-07-30 14:55:48 |
| 合計ジャッジ時間 | 3,287 ms |
|
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <iomanip>//fixed,setprecision
//#include <limits.n>//INT_MAX
//#include <math.n>//M_PI
#include <random>
#include <regex> // 正規表現
#include <time.h>
//#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const int n=100;
const int m=8;
class terry_yukico{
public:
int sx,sy;
vector<pair<int,int>>x,y;
void input();
void output();
};
void terry_yukico::input(){
int ni,mi;
cin>>ni>>mi;
int a,b;
//cin>>sx>>sy;
rep(i,n){
cin>>a>>b;
x.emplace_back(a,i+1);
y.emplace_back(b,i+1);
}
}
void terry_yukico::output(){
rep(i,m){
cout<<i+1<<" "<<i+1<<endl;
}
cout<<n+2<<endl;
sort(x.begin(),x.end());
cout<<1<<" "<<1<<endl;
rep(i,n)cout<<1<<" "<<x[i].second<<endl;
cout<<1<<" "<<1<<endl;
}
int main(){
terry_yukico state;
state.input();
state.output();
return 0;
}