結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2023-11-12 23:44:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 739 bytes |
コンパイル時間 | 2,023 ms |
コンパイル使用メモリ | 197,840 KB |
最終ジャッジ日時 | 2025-02-17 21:46:57 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#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()));}