結果
| 問題 | No.355 数当てゲーム(2) |
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-04-05 22:38:01 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 896 bytes |
| 記録 | |
| コンパイル時間 | 1,223 ms |
| コンパイル使用メモリ | 212,048 KB |
| 実行使用メモリ | 29,924 KB |
| 平均クエリ数 | 41.00 |
| 最終ジャッジ日時 | 2026-06-09 08:40:08 |
| 合計ジャッジ時間 | 10,335 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 52 |
ソースコード
#include<bits/stdc++.h>
#define ALL(v) std::begin(v),std::end(v)
using lint=long long;
using lubl=long double;
lint perf,good;
void query(std::vector<lint>const&a){
for(lint i=0;i<4;i++){
std::cout<<(i?" ":"")<<a.at(i);
}
std::cout<<std::endl;
std::cin>>perf>>good;
if(perf==4&&good==0)exit(0);
}
int main(){
std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
lint dammy=0;
for(;;dammy++){
query(std::vector<lint>(4,dammy));
if(!good)break;
}
std::vector<lint>basic(4,dammy);
std::vector<lint>ans(4);
for(lint i=0;i<4;i++){
for(lint j=0;j<10;j++){
basic.at(i)=j;
query(basic);
if(i<perf){
ans.at(i)=j;
break;
}
basic.at(i)=dammy;
}
}
}
ngtkana