結果

問題 No.675 ドットちゃんたち
ユーザー cielciel
提出日時 2018-04-18 20:35:26
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 368 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 6,512 KB
実行使用メモリ 6,068 KB
最終ジャッジ日時 2023-09-09 11:26:29
合計ジャッジ時間 1,541 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy import*
n,x,y=map(int,raw_input().split())
a=[array([[1,0,c[1]],[0,1,0],[0,0,1]]) if c[0]==1 else array([[1,0,0],[0,1,c[1]],[0,0,1]]) if c[0]==2 else array([[0,1,0],[-1,0,0],[0,0,1]]) for c in [map(int,raw_input().split()) for _ in range(n)]]
for i in range(n-2,-1,-1): a[i]=dot(a[i+1],a[i])
for i in range(n): print ' '.join(map(str,dot(a[i],[x,y,1])[:2]))
0