結果
| 問題 |
No.2647 [Cherry 6th Tune A] Wind
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2024-02-23 21:22:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 575 bytes |
| コンパイル時間 | 4,466 ms |
| コンパイル使用メモリ | 74,700 KB |
| 実行使用メモリ | 59,076 KB |
| 最終ジャッジ日時 | 2024-09-29 05:19:16 |
| 合計ジャッジ時間 | 6,807 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 8 |
ソースコード
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();
}
}
ks2m