結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー askr58askr58
提出日時 2024-02-23 21:23:16
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 2,644 ms
コンパイル使用メモリ 243,428 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-09-29 05:21:16
合計ジャッジ時間 3,392 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
	int t;
	cin>>t;
	while(t--){
		int d;
		ll a;
		cin>>d>>a;
		for(int i=0;i<d;i++){
			ll x;
			cin>>x;
			ll res=x/a;
			x%=a;
			if(2*x>=a)res++;
			cout<<res;
			if(i<d-1)cout<<" ";
			else cout<<endl;
		}
	}
}
0