結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
|
提出日時 | 2024-03-12 20:31:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 464 bytes |
コンパイル時間 | 2,086 ms |
コンパイル使用メモリ | 192,808 KB |
最終ジャッジ日時 | 2025-02-20 04:00:09 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; void fast_io() { cin.tie(nullptr); ios_base::sync_with_stdio(false); } void solve() { int D; long A; cin >> D >> A; for (int i = 0; i < D; i++) { long X; cin >> X; long res = round((long double)X / A); cout << res << " \n"[i == D - 1]; } } signed main(void) { fast_io(); int T; cin >> T; while (T--) { solve(); } return 0; }