結果
| 問題 | No.675 ドットちゃんたち |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-21 09:14:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 398 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 34,560 KB |
| 最終ジャッジ日時 | 2024-07-23 15:26:12 |
| 合計ジャッジ時間 | 6,230 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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(int, xy))