結果

問題 No.513 宝探し2
ユーザー YamyukiYamyuki
提出日時 2017-05-05 22:52:16
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 23,172 KB
実行使用メモリ 24,336 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:05:40
合計ジャッジ時間 1,710 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,048 KB
testcase_01 AC 19 ms
23,376 KB
testcase_02 AC 18 ms
23,532 KB
testcase_03 AC 19 ms
23,688 KB
testcase_04 AC 19 ms
24,036 KB
testcase_05 AC 18 ms
23,400 KB
testcase_06 AC 18 ms
23,544 KB
testcase_07 AC 18 ms
23,412 KB
testcase_08 AC 19 ms
23,412 KB
testcase_09 AC 19 ms
24,012 KB
testcase_10 AC 19 ms
24,336 KB
testcase_11 AC 19 ms
23,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

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