結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー Maeda
提出日時 2025-08-27 17:44:12
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 497 bytes
コンパイル時間 2,550 ms
コンパイル使用メモリ 76,628 KB
実行使用メモリ 53,428 KB
最終ジャッジ日時 2025-08-27 17:44:22
合計ジャッジ時間 8,732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int i = 0 ; i < n ; i ++){
			int day = scan.nextInt();
			long a = scan.nextLong();
			long[] list = new long[day];
			for(int j = 0 ; j < day ; j++){
				long p = Math.round(scan.nextLong() / a);
				System.out.print(p);
				if(j != day -1 ){
					System.out.print(" ");
				}else{
					System.out.println("");
				}
			}
		}
    }
}
0