結果
問題 |
No.471 直列回転機
|
ユーザー |
|
提出日時 | 2016-12-25 16:24:33 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 757 bytes |
コンパイル時間 | 715 ms |
コンパイル使用メモリ | 119,760 KB |
実行使用メモリ | 26,416 KB |
平均クエリ数 | 19588.39 |
最終ジャッジ日時 | 2024-06-12 06:04:24 |
合計ジャッジ時間 | 16,493 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 33 WA * 25 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { int[3][3] mat; auto M = readln.chomp.to!int; auto P = M.iota.map!(_ => readln.split.map!(to!int).array).array; writeln("? 0 0"); stdout.flush; auto dxdy = readln.split.map!(to!int).array; writeln("? 1 0"); stdout.flush; auto C = readln.split.map!(to!int).array; auto cos = C[0] - dxdy[0]; auto sin = C[1] - dxdy[1]; writeln("!"); foreach (p; P) { auto x = p[0] * cos - p[1] * sin + dxdy[0]; auto y = p[0] * sin - p[1] * cos + dxdy[1]; writeln(x, " ", y); } stdout.flush; }