結果

問題 No.5003 物理好きクリッカー
ユーザー risujirohrisujiroh
提出日時 2018-12-05 17:29:43
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 316 ms / 10,000 ms
コード長 1,103 bytes
コンパイル時間 1,430 ms
実行使用メモリ 21,996 KB
スコア 0
平均クエリ数 10000.00
最終ジャッジ日時 2021-07-19 08:47:36
合計ジャッジ時間 14,115 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
純コード判定しない問題か言語
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 312 ms
21,660 KB
testcase_01 AC 312 ms
21,288 KB
testcase_02 AC 310 ms
21,504 KB
testcase_03 AC 313 ms
21,324 KB
testcase_04 AC 312 ms
21,504 KB
testcase_05 AC 308 ms
21,492 KB
testcase_06 AC 311 ms
21,312 KB
testcase_07 AC 310 ms
21,492 KB
testcase_08 AC 311 ms
21,528 KB
testcase_09 AC 311 ms
21,312 KB
testcase_10 AC 313 ms
21,660 KB
testcase_11 AC 307 ms
21,696 KB
testcase_12 AC 311 ms
21,468 KB
testcase_13 AC 312 ms
21,492 KB
testcase_14 AC 315 ms
21,324 KB
testcase_15 AC 310 ms
21,336 KB
testcase_16 AC 313 ms
21,828 KB
testcase_17 AC 311 ms
21,828 KB
testcase_18 AC 312 ms
21,828 KB
testcase_19 AC 312 ms
21,480 KB
testcase_20 AC 316 ms
21,900 KB
testcase_21 AC 311 ms
21,876 KB
testcase_22 AC 312 ms
21,312 KB
testcase_23 AC 311 ms
21,852 KB
testcase_24 AC 311 ms
21,468 KB
testcase_25 AC 310 ms
21,660 KB
testcase_26 AC 314 ms
21,492 KB
testcase_27 AC 308 ms
21,816 KB
testcase_28 AC 313 ms
21,888 KB
testcase_29 AC 309 ms
21,456 KB
testcase_30 AC 310 ms
21,840 KB
testcase_31 AC 311 ms
21,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template<class T = int> using V = vector<T>;
template<class T = int> using VV = V< V<T> >;
template<class T, class U> void assign(V<T>& v, int n, const U& a) { v.assign(n, a); }
template<class T, class... Args> void assign(V<T>& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); }


// input
constexpr int N = 10000;
string S;

mt19937 mt(steady_clock::now().time_since_epoch().count());
// [a, b)
int rng(int a, int b) {
  assert(a < b);
  return uniform_int_distribution<>(a, b - 1)(mt);
}
double rng(double a, double b) {
  assert(a < b);
  return uniform_real_distribution<>(a, b)(mt);
}

void read_input() {
  int _;
  cin >> _;
  assert(_ == N);
  cin >> S;
}

void write_output() {
  for (int i = 0; i < N; ++i) {
    cout << (i == N - 1 and !rng(0, 40) ? "click" : "nothing") << endl;
    string str;
    cin >> str;
    assert(str == "ok");
  }
}

int main() {
  read_input();
  write_output();
}
0