結果
問題 | No.471 直列回転機 |
ユーザー | nebukuro09 |
提出日時 | 2016-12-25 16:24:33 |
言語 | D (dmd 2.106.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 757 bytes |
コンパイル時間 | 1,196 ms |
コンパイル使用メモリ | 106,308 KB |
実行使用メモリ | 26,748 KB |
平均クエリ数 | 19588.39 |
最終ジャッジ日時 | 2023-09-03 00:08:29 |
合計ジャッジ時間 | 20,068 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 26 ms
23,400 KB |
testcase_02 | AC | 25 ms
23,388 KB |
testcase_03 | WA | - |
testcase_04 | AC | 25 ms
23,628 KB |
testcase_05 | AC | 26 ms
24,012 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 49 ms
23,412 KB |
testcase_09 | AC | 55 ms
23,556 KB |
testcase_10 | AC | 38 ms
24,024 KB |
testcase_11 | AC | 157 ms
23,856 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 341 ms
25,372 KB |
testcase_15 | WA | - |
testcase_16 | AC | 28 ms
23,832 KB |
testcase_17 | AC | 25 ms
23,652 KB |
testcase_18 | AC | 26 ms
23,436 KB |
testcase_19 | AC | 26 ms
23,988 KB |
testcase_20 | AC | 348 ms
24,304 KB |
testcase_21 | AC | 97 ms
23,400 KB |
testcase_22 | AC | 319 ms
23,424 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 344 ms
24,448 KB |
testcase_27 | WA | - |
testcase_28 | AC | 214 ms
24,024 KB |
testcase_29 | WA | - |
testcase_30 | AC | 116 ms
24,468 KB |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | AC | 229 ms
24,024 KB |
testcase_34 | AC | 336 ms
23,232 KB |
testcase_35 | AC | 96 ms
23,844 KB |
testcase_36 | WA | - |
testcase_37 | AC | 52 ms
23,652 KB |
testcase_38 | WA | - |
testcase_39 | AC | 140 ms
23,988 KB |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | AC | 333 ms
23,400 KB |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | AC | 259 ms
24,012 KB |
testcase_47 | AC | 323 ms
24,628 KB |
testcase_48 | AC | 285 ms
23,832 KB |
testcase_49 | AC | 276 ms
24,000 KB |
testcase_50 | AC | 321 ms
24,012 KB |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | AC | 29 ms
23,424 KB |
testcase_54 | AC | 28 ms
23,976 KB |
testcase_55 | AC | 104 ms
24,360 KB |
testcase_56 | WA | - |
testcase_57 | WA | - |
testcase_58 | WA | - |
ソースコード
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; }