結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー 唐揚げが壊わ唐揚げが壊わ
提出日時 2024-02-23 21:33:36
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 1,486 bytes
コンパイル時間 4,557 ms
コンパイル使用メモリ 263,804 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-02-23 21:33:43
合計ジャッジ時間 5,335 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>

#include <atcoder/all>

using namespace std;
using str = string;
using ll = long long;
using ld = long double;
using vll = vector<long long>;
using vvll = vector<vector<long long>>;
using vvvll = vector<vector<vector<long long>>>;
using vvvvll = vector<vector<vector<vector<long long>>>>;
using vpll = vector<pair<ll, ll>>;
using vs = vector<string>;
using vb = vector<bool>;
using vvb = vector<vector<bool>>;
using pll = pair<ll, ll>;
#define REP(i, n) for (long long i = 0; i < n; i++)
#define REP2(i, n, m) for (long long i = n; i < m; i++)
#define REPv(v) for (auto itr = v.begin(); itr != v.end(); itr++)
#define REPIN(v) \
  for (long long i = 0; i < (long long)v.size(); i++) cin >> v[i];
#define been(vec) vec.begin(), vec.end()
#define LIN      \
  = []() {       \
    long long x; \
    cin >> x;    \
    return x;    \
  }()
#define SIN   \
  = []() {    \
    string x; \
    cin >> x; \
    return x; \
  }()
#define SPNL(i, SIZE) (i + 1 == SIZE ? '\n' : ' ')
ll gcd(ll x, ll y) { return (x % y) ? gcd(y, x % y) : y; }
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
bool chmin(ll &a, const ll &b) { return (a > b && ((a = b) | 1)); }
bool chmax(ll &a, const ll &b) { return (a < b && ((a = b) | 1)); }

using namespace std;
int main() {
  ll t LIN;
  REP(i, t) {
    ll d, a;
    cin >> d >> a;
    vector<unsigned long long> x(d);
    REPIN(x);
    REP(i, d) {
      cout << (x[i] / a) + ((x[i] * 10 / a) % 10 >= 5) << SPNL(i, d);
    }
  }
}
0