結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー ks2mks2m
提出日時 2024-02-23 21:22:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 575 bytes
コンパイル時間 4,514 ms
コンパイル使用メモリ 74,404 KB
実行使用メモリ 62,668 KB
最終ジャッジ日時 2024-02-23 21:22:38
合計ジャッジ時間 8,529 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
57,588 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 258 ms
61,200 KB
testcase_04 AC 210 ms
60,112 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 257 ms
61,256 KB
testcase_08 AC 251 ms
61,856 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 110 ms
56,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		for (int z = 0; z < t; z++) {
			int d = sc.nextInt();
			double a = sc.nextLong();
			long[] x = new long[d];
			for (int i = 0; i < d; i++) {
				x[i] = sc.nextLong();
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 0; i < d; i++) {
				sb.append(Math.round(x[i] / a)).append(' ');
			}
			sb.deleteCharAt(sb.length() - 1);
			System.out.println(sb.toString());
		}
		sc.close();
	}
}
0