結果

問題 No.675 ドットちゃんたち
ユーザー cande398cande398
提出日時 2018-06-18 20:15:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,808 KB
実行使用メモリ 24,768 KB
最終ジャッジ日時 2023-09-13 06:54:48
合計ジャッジ時間 4,622 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,860 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 14 ms
7,784 KB
testcase_04 AC 16 ms
7,808 KB
testcase_05 AC 415 ms
18,708 KB
testcase_06 AC 466 ms
24,768 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

command = []
N, Px, Py = map(int, input().split())
Fx, Fy = Px, Py
for i in range(N):
	command.append(list(map(int, input().split())))
	if command[-1][0] == 1:
		Fx = Fx+command[-1][1]
	elif command[-1][0] == 2:
		Fy = Fy+command[-1][1]
	else:
		Fx, Fy = Fy, 0-Fx
for i in range(N):
	print(Fx, Fy)
	if command[i][0] == 1:
		Fx -= command[i][1]
	elif command[i][0] == 2:
		Fy -= command[i][1]
	else:
		Fx, Fy = 0-Fy, Fx
0