結果
| 問題 |
No.5007 Steiner Space Travel
|
| コンテスト | |
| ユーザー |
rinrion
|
| 提出日時 | 2022-08-03 15:01:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 1,101 bytes |
| コンパイル時間 | 1,436 ms |
| 実行使用メモリ | 6,952 KB |
| スコア | 1,221,702 |
| 最終ジャッジ日時 | 2022-08-03 15:01:49 |
| 合計ジャッジ時間 | 3,148 ms |
|
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <bits/stdc++.h>
#include<chrono> //時間計測
using namespace std;
static uint32_t randxor(){//ランダム数(int)
static uint32_t x = 123456789;
static uint32_t y = 362436069;
static uint32_t z = 521288629;
static uint32_t w = 88675123;
uint32_t t = x ^ (x << 11);
x = y; y = z; z = w;
return w = (w ^ (w >> 19)) ^ (t ^ (t >> 8));
}
static double rand01(){//ランダム数(0.0以上1.0未満の小数)
return(randxor()+0.5)*(1.0/UINT_MAX);
}
double time_limit=950;//終了時間
double gettime;//経過時間
chrono::system_clock::time_point time_now; //現在の時間
double start_temp=2000, end_temp=0.001;
int main(){
int n,m;
cin>>n>>m;
vector<int>a(n),b(n);
for(int i=0; i<n; i++){
cin>>a[i]>>b[i];
}
vector<tuple<int,int>>cd(8);
for(int i=0; i<8; i++){
get<0>(cd[i])=0;
get<1>(cd[i])=0;
}
vector<tuple<int,int>>tr(101);
for(int i=0; i<101; i++){
get<0>(tr[i])=1;
get<1>(tr[i])=i%100+1;
}
for(auto x:cd){
cout<<get<0>(x)<<" "<<get<1>(x)<<endl;
}
cout<<tr.size()<<endl;
for(auto x:tr){
cout<<get<0>(x)<<" "<<get<1>(x)<<endl;
}
}
rinrion