結果
問題 | No.471 直列回転機 |
ユーザー |
![]() |
提出日時 | 2020-03-06 17:31:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,623 ms / 3,141 ms |
コード長 | 579 bytes |
コンパイル時間 | 456 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 34,008 KB |
平均クエリ数 | 19589.39 |
最終ジャッジ日時 | 2024-06-11 10:46:07 |
合計ジャッジ時間 | 42,582 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 58 |
ソースコード
#!/usr/bin/env python3 # %% import sys readline = sys.stdin.readline # %% M = int(readline()) XY = [tuple(map(int, readline().split())) for _ in range(M)] # %% def question(*args, offset='?'): if offset is None: print(*args, flush=True) else: print(offset, *args, flush=True) return readline() # %% a, b = map(int, question(0, 0).split()) c, d = map(int, question(1, 0).split()) e, f = map(int, question(0, 1).split()) c -= a e -= a d -= b f -= b print('!', flush=True) for x, y in XY: print(a + c * x + e * y, b + d * x + f * y, flush=True)