結果
| 問題 | No.471 直列回転機 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 13:42:07 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 766 bytes |
| 記録 | |
| コンパイル時間 | 356 ms |
| コンパイル使用メモリ | 77,348 KB |
| 最終ジャッジ日時 | 2025-12-03 22:57:30 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 WA * 14 RE * 32 |
ソースコード
#!/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
xminus = True
yminus = True
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()