結果

問題 No.305 鍵(2)
ユーザー 👑 CleyL
提出日時 2020-02-18 15:54:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 672 bytes
コンパイル時間 666 ms
コンパイル使用メモリ 65,780 KB
実行使用メモリ 25,460 KB
平均クエリ数 62.08
最終ジャッジ日時 2024-07-16 19:31:15
合計ジャッジ時間 2,712 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string s = "";
    for(int i = 0; 10 > i; i++){
        int def = 0;
        for(int j = 0; 10 > j; j++){
            cout << s << j;
            for(int k = 0; 10-s.size()-1 > k; k++){
                cout << "0";
            }
            cout << endl;
            int n;string c;cin>>n>>c;
            
            if(!j){
                def = n;
            }else{
                if(def > n){
                    s.push_back('0');
                    break;
                }else if(def < n){
                    s.push_back('0'+j);
                    break;
                }
            }
        }
    }
}
0