結果

問題 No.3418 【絶望】30個並列ごちゃ混ぜHit&Blowで遊ぼう!
コンテスト
ユーザー daiota
提出日時 2025-12-25 07:14:58
言語 C++17
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 1,769 ms / 5,000 ms
コード長 856 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,137 ms
コンパイル使用メモリ 198,892 KB
実行使用メモリ 26,284 KB
スコア 7,068,123
平均クエリ数 29318.77
最終ジャッジ日時 2025-12-25 07:17:56
合計ジャッジ時間 172,610 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 100
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int,int> P;
#define REP(i,n) for(ll i=0;i<int(n);i++)















int main(){
	cin.tie(nullptr);  ios_base::sync_with_stdio(false);
    int i,j,k,l,m;


	vector<string> S;
	for(i=0;i<10;i++){
		for(j=0;j<10;j++){
			if(j==i) continue;
			for(k=0;k<10;k++){
				if(k==i || k==j) continue;
				for(l=0;l<10;l++){
					if(l==i || l==j || l==k) continue;
					for(m=0;m<10;m++){
						if(m==i || m==j || m==k || m==l) continue;

						string s;
						s+=char(i+'0');
						s+=char(j+'0');
						s+=char(k+'0');
						s+=char(l+'0');
						s+=char(m+'0');

						S.push_back(s);

					}
				}
			}
		}
	}




	REP(i,30240){

		cout << S[i] << endl;
		cout.flush();

		REP(j,30){
			int h,b;
			cin >> h >> b;

			if(j==0 && h==5) return 0;
		}




	}









  return 0;

}
0