結果
| 問題 |
No.675 ドットちゃんたち
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-21 09:22:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 401 bytes |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 34,560 KB |
| 最終ジャッジ日時 | 2024-07-23 15:26:21 |
| 合計ジャッジ時間 | 5,527 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 3 WA * 5 |
ソースコード
N, Px, Py = map(int, input().split())
C = [tuple(map(int, input().split())) for _ in range(N)]
res = []
cur = complex(Px, Py)
orient = 1
for c in reversed(C):
if c[0] == 1:
cur += c[1] * orient
elif c[0] == 2:
cur += c[1] * 1j * orient
else:
cur *= -1j
orient *= -1j
res.append((cur.real, cur.imag))
for xy in reversed(res):
print(*map(round, xy))