結果
問題 | No.471 直列回転機 |
ユーザー | yuppe19 😺 |
提出日時 | 2016-12-21 13:42:07 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 766 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 6,648 KB |
実行使用メモリ | 29,140 KB |
平均クエリ数 | 9097.08 |
最終ジャッジ日時 | 2023-09-23 12:11:50 |
合計ジャッジ時間 | 22,676 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
24,228 KB |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | AC | 40 ms
23,568 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | AC | 370 ms
27,528 KB |
testcase_13 | AC | 373 ms
27,924 KB |
testcase_14 | RE | - |
testcase_15 | WA | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | AC | 37 ms
23,676 KB |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 106 ms
24,160 KB |
testcase_26 | RE | - |
testcase_27 | WA | - |
testcase_28 | RE | - |
testcase_29 | WA | - |
testcase_30 | RE | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | RE | - |
testcase_34 | RE | - |
testcase_35 | RE | - |
testcase_36 | AC | 198 ms
24,876 KB |
testcase_37 | RE | - |
testcase_38 | WA | - |
testcase_39 | RE | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | AC | 289 ms
26,504 KB |
testcase_43 | RE | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | RE | - |
testcase_47 | RE | - |
testcase_48 | RE | - |
testcase_49 | RE | - |
testcase_50 | RE | - |
testcase_51 | AC | 187 ms
24,052 KB |
testcase_52 | AC | 42 ms
23,568 KB |
testcase_53 | RE | - |
testcase_54 | RE | - |
testcase_55 | RE | - |
testcase_56 | AC | 123 ms
23,436 KB |
testcase_57 | AC | 102 ms
23,448 KB |
testcase_58 | AC | 67 ms
23,580 KB |
ソースコード
#!/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()