結果

問題 No.514 宝探し3
ユーザー YamyukiYamyuki
提出日時 2017-05-05 22:53:35
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 23,248 KB
実行使用メモリ 24,348 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:27:27
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,340 KB
testcase_01 AC 24 ms
23,724 KB
testcase_02 AC 23 ms
24,348 KB
testcase_03 AC 23 ms
23,628 KB
testcase_04 AC 22 ms
24,000 KB
testcase_05 AC 23 ms
24,000 KB
testcase_06 AC 23 ms
23,508 KB
testcase_07 AC 23 ms
23,508 KB
testcase_08 AC 23 ms
23,508 KB
testcase_09 AC 22 ms
24,312 KB
testcase_10 AC 23 ms
24,024 KB
testcase_11 AC 22 ms
23,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(int argc, char const *argv[]){
	long long x,y,a,b;
	printf("0 0\n");
	fflush(stdout);
	scanf("%lld",&a);
	printf("1000000000 0\n");
	fflush(stdout);
	scanf("%lld",&b);
	x=(a-b+1000000000)/2;
	y=a-x;
	printf("%lld %lld\n",x,y);
	fflush(stdout);
	return 0;
}
0