結果

問題 No.471 直列回転機
ユーザー 37zigen37zigen
提出日時 2016-12-27 14:34:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 766 bytes
コンパイル時間 6,632 ms
コンパイル使用メモリ 81,432 KB
実行使用メモリ 88,852 KB
平均クエリ数 14952.44
最終ジャッジ日時 2023-09-23 12:26:44
合計ジャッジ時間 100,401 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 200 ms
73,100 KB
testcase_01 AC 190 ms
73,208 KB
testcase_02 AC 194 ms
72,632 KB
testcase_03 AC 192 ms
75,152 KB
testcase_04 AC 195 ms
72,380 KB
testcase_05 AC 376 ms
77,264 KB
testcase_06 AC 290 ms
75,984 KB
testcase_07 AC 360 ms
76,440 KB
testcase_08 AC 862 ms
78,164 KB
testcase_09 AC 891 ms
78,380 KB
testcase_10 AC 644 ms
77,312 KB
testcase_11 AC 1,859 ms
80,932 KB
testcase_12 AC 2,437 ms
82,880 KB
testcase_13 AC 2,997 ms
85,676 KB
testcase_14 AC 3,128 ms
83,844 KB
testcase_15 WA -
testcase_16 AC 324 ms
76,836 KB
testcase_17 AC 189 ms
73,096 KB
testcase_18 AC 193 ms
72,724 KB
testcase_19 AC 197 ms
72,860 KB
testcase_20 AC 2,599 ms
86,728 KB
testcase_21 AC 977 ms
78,968 KB
testcase_22 AC 2,830 ms
85,252 KB
testcase_23 AC 2,672 ms
87,792 KB
testcase_24 AC 2,010 ms
82,848 KB
testcase_25 AC 883 ms
80,120 KB
testcase_26 AC 2,518 ms
84,604 KB
testcase_27 AC 1,872 ms
82,968 KB
testcase_28 AC 2,021 ms
80,384 KB
testcase_29 AC 2,353 ms
83,048 KB
testcase_30 AC 1,168 ms
79,892 KB
testcase_31 AC 2,897 ms
86,488 KB
testcase_32 AC 3,038 ms
81,252 KB
testcase_33 AC 2,367 ms
83,204 KB
testcase_34 TLE -
testcase_35 AC 1,141 ms
78,236 KB
testcase_36 AC 1,690 ms
81,780 KB
testcase_37 AC 821 ms
79,556 KB
testcase_38 AC 1,073 ms
80,908 KB
testcase_39 AC 1,452 ms
79,316 KB
testcase_40 AC 2,534 ms
83,896 KB
testcase_41 AC 2,676 ms
85,248 KB
testcase_42 AC 2,153 ms
83,328 KB
testcase_43 AC 3,017 ms
88,852 KB
testcase_44 AC 636 ms
78,440 KB
testcase_45 AC 2,379 ms
82,016 KB
testcase_46 AC 2,664 ms
82,792 KB
testcase_47 TLE -
testcase_48 AC 2,719 ms
83,308 KB
testcase_49 AC 2,780 ms
83,884 KB
testcase_50 AC 3,050 ms
85,888 KB
testcase_51 AC 1,541 ms
79,596 KB
testcase_52 AC 377 ms
79,436 KB
testcase_53 AC 364 ms
77,580 KB
testcase_54 AC 422 ms
78,212 KB
testcase_55 AC 1,264 ms
82,488 KB
testcase_56 AC 953 ms
78,032 KB
testcase_57 AC 703 ms
78,220 KB
testcase_58 AC 698 ms
81,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.*;

public class Q471 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int M = sc.nextInt();
		double[] x = new double[M];
		double[] y = new double[M];
		for (int i = 0; i < M; ++i) {
			x[i] = sc.nextDouble();
			y[i] = sc.nextDouble();
		}
		System.out.println("? 0 0");
		double dx = sc.nextDouble();
		double dy = sc.nextDouble();
		System.out.println("? 1 0");
		double cos = sc.nextDouble() - dx;
		double sin = sc.nextDouble() - dy;
		double[] nx = new double[M];
		double[] ny = new double[M];
		System.out.println("!");
		for (int i = 0; i < M; ++i) {
			nx[i] = cos * x[i] - sin * y[i] + dx;
			ny[i] = sin * x[i] + cos * y[i] + dy;
			System.out.println(nx[i]+" "+ny[i]);
		}
	}
}
0