結果
| 問題 | No.675 ドットちゃんたち |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-18 20:35:26 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 368 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 77,728 KB |
| 最終ジャッジ日時 | 2025-12-04 01:08:58 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 8 |
ソースコード
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]))