結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
![]() |
提出日時 | 2024-03-15 13:07:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 2,047 ms |
コンパイル使用メモリ | 193,004 KB |
最終ジャッジ日時 | 2025-02-20 04:31:00 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { int d; long long a; cin >> d >> a; for (int i = 0; i < d; i++) { long long x; cin >> x; long long q = x / a, ex = x % a; if (ex * 2 >= a) { q++; } cout << q << " "; } cout << endl; } }