結果

問題 No.2357 Guess the Function
ユーザー 👑 ygussanyygussany
提出日時 2023-06-04 19:07:06
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 266 bytes
コンパイル時間 1,475 ms
コンパイル使用メモリ 26,432 KB
実行使用メモリ 36,004 KB
最終ジャッジ日時 2023-08-28 08:21:10
合計ジャッジ時間 5,447 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int y, yy;
	printf("? 100\n");
	fflush(stdout);
	scanf("%d", &y);
	printf("? %d\n", 100 - (y + 1));
	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