結果

問題 No.471 直列回転機
ユーザー yuppe19 😺yuppe19 😺
提出日時 2016-12-21 13:39:39
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 736 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 6,728 KB
実行使用メモリ 29,376 KB
平均クエリ数 9097.08
最終ジャッジ日時 2023-09-23 12:10:39
合計ジャッジ時間 21,312 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,340 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 38 ms
23,304 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 39 ms
23,844 KB
testcase_07 AC 41 ms
23,400 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 370 ms
27,924 KB
testcase_13 AC 369 ms
27,904 KB
testcase_14 RE -
testcase_15 AC 453 ms
29,376 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 39 ms
23,700 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 349 ms
28,016 KB
testcase_24 AC 234 ms
25,320 KB
testcase_25 AC 104 ms
24,228 KB
testcase_26 RE -
testcase_27 AC 226 ms
24,740 KB
testcase_28 RE -
testcase_29 AC 291 ms
25,880 KB
testcase_30 RE -
testcase_31 AC 418 ms
28,664 KB
testcase_32 AC 355 ms
27,188 KB
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 AC 192 ms
24,736 KB
testcase_37 RE -
testcase_38 AC 115 ms
23,956 KB
testcase_39 RE -
testcase_40 AC 312 ms
26,736 KB
testcase_41 AC 416 ms
28,904 KB
testcase_42 AC 285 ms
25,968 KB
testcase_43 RE -
testcase_44 AC 84 ms
23,772 KB
testcase_45 AC 273 ms
25,880 KB
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 AC 186 ms
24,336 KB
testcase_52 AC 43 ms
23,304 KB
testcase_53 RE -
testcase_54 RE -
testcase_55 RE -
testcase_56 AC 128 ms
24,240 KB
testcase_57 AC 98 ms
23,688 KB
testcase_58 AC 67 ms
23,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
import sys
from collections import namedtuple
P = namedtuple('P', 'x, y')

def nya(mes):
    print mes
    sys.stdout.flush()


M = int(raw_input())
points = [P(*map(int, raw_input().split())) for _ in xrange(M)]

nya('? 0 0')
p00 = P(*map(int, raw_input().split()))
nya('? 1 0')
p10 = P(*map(int, raw_input().split()))
nya('? 1 1')
p11 = P(*map(int, raw_input().split()))

assert p00.y == p10.y and abs(p00.x - p10.x) == 1
assert p10.x == p11.x and abs(p10.y - p11.y) == 1

xminus = p00.x > p10.x
yminus = p10.y > p11.y

print '!'
for p in points:
    x = p00.x + p.x * (-1 if xminus else 1)
    y = p00.y + p.y * (-1 if yminus else 1)
    print '{} {}'.format(x, y)
sys.stdout.flush()
0