結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2015-12-08 18:59:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 513 bytes |
コンパイル時間 | 557 ms |
コンパイル使用メモリ | 67,816 KB |
実行使用メモリ | 25,820 KB |
平均クエリ数 | 101.00 |
最終ジャッジ日時 | 2024-07-16 08:04:14 |
合計ジャッジ時間 | 3,446 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#include<iostream> #include<string> #include <vector> #include <algorithm> #include <iomanip> using namespace std; int main(int argc, char const *argv[]) { int K=0; for (int i = 0; i < 10; ++i) { for (int j = 0; j< 10; ++j) { string S = "aaaaaaaaaa"; S[i] = j + '0'; cout<<S<<endl; int R; string N; cin>>R; cin>>N; if(R == 1) { K = ++K; break; } } } if(K==10) { cout<<"10 unlocked"<<endl; } else { cout<<K<<" locked"<<endl; } return 0; }