結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
![]() |
提出日時 | 2024-04-25 13:12:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 506 bytes |
コンパイル時間 | 554 ms |
コンパイル使用メモリ | 40,516 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 00:21:16 |
合計ジャッジ時間 | 1,469 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
/* -*- coding: utf-8 -*- * * 2647.cc: No.2647 [Cherry 6th Tune A] Wind - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* typedef */ typedef long long ll; /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { int d; ll a; scanf("%d%lld", &d, &a); while (d--) { ll xi; scanf("%lld", &xi); ll pi = xi / a, ri = xi % a; if (ri * 2 >= a) pi++; printf("%lld%c", pi, d ? ' ' : '\n'); } } return 0; }