結果

問題 No.305 鍵(2)
ユーザー butsurizukibutsurizuki
提出日時 2017-01-10 12:51:58
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 528 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 23,828 KB
実行使用メモリ 24,288 KB
平均クエリ数 93.23
最終ジャッジ日時 2023-09-23 12:35:49
合計ジャッジ時間 3,326 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

void prans(int x[]){
	int i;
	for(i = 1;i <= 10;i++){printf("%d",x[i]);}
	printf("\n");
}

int main(void){
	int t[16]={0},a[16]={0},i,j,r,c,n;
	char d[16];
	for(i = 1;i <= 10;i++){
		for(j = 0;j <= 9;j++){
			t[i] = j;
			prans(t);
			fflush(stdout);
			scanf("%d%s",&r,d);
			if(r == 10){return 0;}
			n = r;
			if(j == 0){c = r;}
			else{
				if(c > n){a[i] == 0;continue;}
				if(c < n){a[i] == j;continue;}
			}
		}
	}
	prans(a);
	fflush(stdout);
	scanf("%d%s",&r,d);
	if(r == 10){return 0;}
	return 0;
}
0