結果

問題 No.514 宝探し3
ユーザー 6soukiti296soukiti29
提出日時 2017-05-06 11:45:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 24,276 KB
平均クエリ数 3.75
最終ジャッジ日時 2023-09-23 13:57:09
合計ジャッジ時間 1,530 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
24,264 KB
testcase_01 AC 36 ms
24,276 KB
testcase_02 AC 37 ms
23,468 KB
testcase_03 AC 38 ms
23,544 KB
testcase_04 AC 38 ms
24,276 KB
testcase_05 AC 37 ms
23,512 KB
testcase_06 AC 38 ms
24,216 KB
testcase_07 AC 40 ms
23,904 KB
testcase_08 AC 37 ms
23,448 KB
testcase_09 AC 37 ms
23,904 KB
testcase_10 AC 38 ms
23,328 KB
testcase_11 AC 38 ms
23,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- Coding: utf-8 -*-
i = 0
m =1000000000
A = []
flag = 0
while i < 3:
	if i == 0:
		x,y = 0,0
	elif i == 1:
		x,y = m,0
	elif i == 2:
		x,y = 0,m
	print(x,y)
	try:
		l = int(input())
	except (RuntimeError, TypeError, NameError,ValueError,EOFError):
		flag = 1
		break
	A.append(l)
	i += 1
if flag == 0:
	Y = (A[0] + A[1] - m) // 2
	X = (A[0] + A[2] - m) // 2
	print(X,Y)
0