結果

問題 No.5007 Steiner Space Travel
ユーザー kaede2020kaede2020
提出日時 2022-07-30 14:55:44
言語 C++14
(gcc 12.3.0 + boost 1.83.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
純コード判定しない問題か言語
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
3,488 KB
testcase_01 AC 2 ms
3,476 KB
testcase_02 AC 2 ms
3,364 KB
testcase_03 AC 1 ms
3,488 KB
testcase_04 AC 1 ms
3,484 KB
testcase_05 AC 1 ms
3,528 KB
testcase_06 AC 1 ms
3,432 KB
testcase_07 AC 1 ms
3,364 KB
testcase_08 AC 1 ms
3,436 KB
testcase_09 AC 2 ms
3,452 KB
testcase_10 AC 1 ms
3,448 KB
testcase_11 AC 2 ms
3,480 KB
testcase_12 AC 1 ms
3,508 KB
testcase_13 AC 1 ms
3,528 KB
testcase_14 AC 2 ms
3,532 KB
testcase_15 AC 1 ms
3,368 KB
testcase_16 AC 2 ms
3,504 KB
testcase_17 AC 2 ms
3,368 KB
testcase_18 AC 1 ms
3,376 KB
testcase_19 AC 2 ms
3,452 KB
testcase_20 AC 2 ms
3,444 KB
testcase_21 AC 2 ms
3,384 KB
testcase_22 AC 2 ms
3,484 KB
testcase_23 AC 2 ms
3,504 KB
testcase_24 AC 1 ms
3,432 KB
testcase_25 AC 2 ms
3,384 KB
testcase_26 AC 2 ms
3,368 KB
testcase_27 AC 1 ms
3,536 KB
testcase_28 AC 1 ms
3,448 KB
testcase_29 AC 2 ms
3,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}

0