結果

問題 No.305 鍵(2)
ユーザー kpinkcatkpinkcat
提出日時 2023-11-12 23:44:28
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 739 bytes
コンパイル時間 2,200 ms
コンパイル使用メモリ 205,980 KB
実行使用メモリ 24,000 KB
平均クエリ数 11.00
最終ジャッジ日時 2023-11-12 23:44:35
合計ジャッジ時間 5,394 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using ll = long long;
using namespace std;

int main()
{
    int q = 10;
    vector<int> v;
    while (q--){
        int ans;
        string s = "";
        for (int i = 0; i < 10; i++) s += to_string(q);
        cout << s << endl;
        cin >> ans >> s;
        for (int i = 0; i < ans; i++) v.push_back(q);
    }
    do{
        int ans;
        string s;
        for (int i = 0; i < 10; i++) cout << v[i];
        cout << endl;
        cin >> ans >> s;
        if (ans == 10) return 0;
    }while (next_permutation(v.begin(), v.end()));
}
0