結果

問題 No.2647 [Cherry 6th Tune A] Wind
コンテスト
ユーザー Rumain831
提出日時 2026-10-07 04:20:59
言語 C++23(gcc16)
(gcc 16.1.0 + boost 1.92.0 + ACL)
コンパイル:
g++-16 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 12 ms / 2,000 ms
+ 751µs
コード長 369 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,597 ms
コンパイル使用メモリ 172,360 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2026-10-07 04:21:03
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ull = unsigned long long;

void solve(){
  int d; ull a; cin >> d >> a;
  while(d--){
    ull x; cin >> x; x*=10;
    x/=a;
    int p=x%10;
    x/=10;
    if(p>=5) x++; 
    cout << x << ' ';
  }
  cout << endl;
}

int main(void){
  int t; cin >> t;
  while(t--) solve();
  return 0; 
}
0