結果
問題 | No.675 ドットちゃんたち |
ユーザー |
|
提出日時 | 2018-09-11 01:05:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 102,244 KB |
最終ジャッジ日時 | 2025-02-25 06:07:16 |
合計ジャッジ時間 | 22,695 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 1 TLE * 7 |
ソースコード
import sysfrom numpy import*n,x,y=map(int,input().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 input().split()]for _ in[0]*n]]for i in range(n-2,-1,-1):a[i]=dot(a[i+1],a[i])sys.stdout.writelines(' '.join(map(str,dot(e,[x,y,1])[:2]))+'\n'for e in a)