結果
| 問題 |
No.5003 物理好きクリッカー
|
| コンテスト | |
| ユーザー |
risujiroh
|
| 提出日時 | 2018-12-05 17:29:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.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 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 |
ソースコード
#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();
}
risujiroh