結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー SotaSota
提出日時 2024-02-23 21:25:37
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,128 bytes
コンパイル時間 876 ms
コンパイル使用メモリ 94,872 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-02-23 21:25:43
合計ジャッジ時間 1,745 ms
ジャッジサーバーID
(参考情報)
judge13 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 11 ms
6,676 KB
testcase_04 AC 6 ms
6,676 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 12 ms
6,676 KB
testcase_08 AC 12 ms
6,676 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES

#include <iostream>		//cin, cout
#include <vector>		//vector
#include <algorithm>	//sort,min,max,count
#include <string>		//string,getline, to_string
#include <cstdlib>		//abs(int)
#include <utility>		//swap, pair
#include <deque>		//deque
#include <climits>		//INT_MAX
#include <bitset>		//bitset
#include <cmath>		//sqrt, ceil. M_PI, pow, sin
#include <ios>			//fixed
#include <iomanip>		//setprecision
#include <sstream>		//stringstream
#include <numeric>		//gcd, assumlate
#include <random>		//randam_device
#include <limits>		//numeric_limits
#include <time.h>       //tm

using namespace std;
constexpr int64_t D_MOD = 1000000007;
constexpr int64_t F_MOD = 998244353;


int main() {

    int T;
    cin >> T;

    int64_t D, A, X, ans;

    for (int i = 0; i < T; i++) {
        cin >> D >> A;
        for (int j = 0; j < D; j++) {
            cin >> X;
            ans = (double)X / (double)A + 0.5;
            cout << ans;
            if (j == D - 1) {
                cout << endl;
            }
            else {
                cout << " ";
            }
        }
    }

    return 0;

}
0