結果

問題 No.2357 Guess the Function
ユーザー 👑 ygussanyygussany
提出日時 2023-06-04 19:07:26
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 26,596 KB
実行使用メモリ 24,264 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-08-28 08:21:11
合計ジャッジ時間 1,329 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,000 KB
testcase_01 AC 24 ms
23,412 KB
testcase_02 AC 24 ms
23,400 KB
testcase_03 WA -
testcase_04 AC 24 ms
23,388 KB
testcase_05 AC 25 ms
23,520 KB
testcase_06 AC 25 ms
23,640 KB
testcase_07 AC 24 ms
23,388 KB
testcase_08 AC 24 ms
23,820 KB
testcase_09 AC 25 ms
23,376 KB
testcase_10 AC 30 ms
23,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int y, yy;
	printf("? 100\n");
	fflush(stdout);
	scanf("%d", &y);
	printf("? %d\n", 100 - (y + 1));
	fflush(stdout);
	scanf("%d", &yy);
	
	int A, B;
	B = yy + 1;
	A = ((y - 100) % B + B) % B;
	printf("! %d %d\n", A, B);
	fflush(stdout);
	return 0;
}
0