結果
問題 | No.675 ドットちゃんたち |
ユーザー |
|
提出日時 | 2018-09-11 01:06:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 127,576 KB |
最終ジャッジ日時 | 2024-12-29 21:42:30 |
合計ジャッジ時間 | 22,666 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 1 TLE * 7 |
ソースコード
import sysfrom numpy import*n,x,y=map(int,sys.stdin.readline().split())a=[[[1,0,c[1]],[0,1,0],[0,0,1]]if c[0]<2 else [[1,0,0],[0,1,c[1]],[0,0,1]]if c[0]<3 else[[0,1,0],[-1,0,0],[0,0,1]]for c in[[int(e)for e in sys.stdin.readline().split()]for _ in[0]*n]]for i in range(n-2,-1,-1):a[i]=dot(a[i+1],a[i])for e in a:print(' '.join(map(str,dot(e,[x,y,1])[:2])))