結果
| 問題 | No.5003 物理好きクリッカー | 
| コンテスト | |
| ユーザー |  gotutiyan | 
| 提出日時 | 2018-12-01 00:53:50 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 346 ms / 10,000 ms | 
| コード長 | 2,920 bytes | 
| コンパイル時間 | 1,381 ms | 
| 実行使用メモリ | 21,996 KB | 
| スコア | 4,318,326 | 
| 平均クエリ数 | 10000.00 | 
| 最終ジャッジ日時 | 2021-07-19 07:25:07 | 
| 合計ジャッジ時間 | 14,314 ms | 
| ジャッジサーバーID (参考情報) | judge11 / judge12 | 
| 純コード判定しない問題か言語 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 32 | 
ソースコード
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
//#include <boost/foreach.hpp>
//#include <boost/range/algorithm.hpp>
#define rep(i,j,k) for(int i=(int)j;i<(int)k;i++)
#define ll long long
#define Sort(v) sort(all(v))
#define INF 1000000000
#define END return 0
#define pb push_back
#define se second
#define fi first
#define pb push_back
#define all(v) (v).begin() , (v).end()
#define MP make_pair
#define MOD 1000000007LL;
using namespace std;
int day[12]={31,28,31,30,31,30,31,31,30,31,30,31};
bool isPrime(int x){
    if(x==1)return false;
    if(x==2)return true;
    if(x%2==0)return false;
    for(int i=0;i*i<=x;i++)if(x%i==0)return false;
    return true;
}
int main (){ 
    int n;
    cin>>n;
    string s; cin>>s;
    unsigned ll cost=15,handcost=150;
    unsigned ll have=0;
    bool have_hand=false;
    int plus=1;
    rep(i,0,n){
        if(handcost<=have){
            if(!have_hand){
                cout<<"buy hand"<<endl<<flush;
                have-=handcost;
                handcost*=10;
            }else {
                cout<<"reinforce hand"<<endl<<flush;
                have-=handcost;
                handcost*=10;
            }
        }else if(cost<=have){
            cout<<"enhclick"<<endl<<flush;
            plus++;
            have-=cost;
            cost*=10;
        }
        else {
            cout<<"click"<<endl<<flush;
            have+=plus;
        }
        cout<<flush;
        cin>>s;
    }
    return 0;
}
/*
10
9 4
4 3
1 1
4 2
2 4
5 8
4 0
5 3
0 5
5 2
0
*/
            
            
            
        