結果
| 問題 | No.355 数当てゲーム(2) |
| コンテスト | |
| ユーザー |
hiro71687k
|
| 提出日時 | 2023-05-04 05:46:10 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,232 bytes |
| 記録 | |
| コンパイル時間 | 3,028 ms |
| コンパイル使用メモリ | 274,908 KB |
| 実行使用メモリ | 30,020 KB |
| 平均クエリ数 | 10.00 |
| 最終ジャッジ日時 | 2026-06-30 11:51:22 |
| 合計ジャッジ時間 | 16,255 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 52 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
using ld=long double;
ld pie=3.141592653589793;
ll inf=14449999999999999;
ll mod=998244353;
int main(){
ll a=0,b=0,c=0,d=0;
for (ll i = 0; i < 100; i++)
{
vector<ll>a(10,0);
for (ll j = 0; j < 10; j++)
{
cout << j << ' ' << j << ' ' << j << ' ' << j << endl;
ll x,y;
cin >> x >> y;
if (x==4)
{
return 0;
}
a[j]=x+y;
}
vector<ll>b(4);
ll now=0;
for (ll j = 0; j < 10; j++)
{
if (a[j]>=1)
{
b[now]=j;
a[j]--;
j--;
now++;
continue;
}
}
vector<ll>c(4);
c[0]=0;
c[1]=1;
c[2]=2;
c[3]=3;
do
{
cout << b[c[0]] << ' ' << b[c[1]] << ' ' << b[c[2]] << ' ' << b[c[3]] << endl;
ll x,y;
cin >> x >> y;
if (x==4)
{
return 0;
}
} while (next_permutation(c.begin(),c.end()));
}
}
hiro71687k