結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
|
提出日時 | 2024-02-24 18:26:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 1,802 ms |
コンパイル使用メモリ | 192,556 KB |
最終ジャッジ日時 | 2025-02-19 21:10:33 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; void solve(); int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int test_case; cin>>test_case; while (test_case--){ solve(); } } void solve(){ int D; ll A; cin>>D>>A; for(int i=0;i<D;i++){ ll X; cin>>X; cout<<(X+A/2)/A<<(i==D-1?'\n':' '); } }