結果

問題 No.305 鍵(2)
ユーザー FF256grhyFF256grhy
提出日時 2015-11-27 23:16:48
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 25,232 KB
実行使用メモリ 24,336 KB
平均クエリ数 85.69
最終ジャッジ日時 2023-09-23 06:48:18
合計ジャッジ時間 2,669 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

long long int x, y, z;
char s[100];

int main(void) {
	long long int i, j, k = 1;
	for(i = 0; i < 10; i++) {
	for(j = 0; j < 10; j++) {
		y = x;
		printf("%010lld\n", j * k); fflush(stdout);
		scanf("%d %s", &x, s);
		if(x == 10) { return 0; }
		if(j != 0 && x != y) { z += (y < x ? j : j - 1) * k; continue; }
	} k *= 10;
	}
	
	printf("%010lld\n", z); fflush(stdout);
	
	return 0;
}
0