結果
問題 | No.5017 Tool-assisted Shooting |
ユーザー | tebanya |
提出日時 | 2023-07-16 15:24:57 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 136 ms / 2,000 ms |
コード長 | 1,541 bytes |
コンパイル時間 | 1,794 ms |
コンパイル使用メモリ | 171,068 KB |
実行使用メモリ | 64,724 KB |
スコア | 33,601 |
平均クエリ数 | 591.35 |
最終ジャッジ日時 | 2023-07-16 15:25:15 |
合計ジャッジ時間 | 16,068 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
64,312 KB |
testcase_01 | AC | 88 ms
64,292 KB |
testcase_02 | AC | 75 ms
64,224 KB |
testcase_03 | AC | 88 ms
63,940 KB |
testcase_04 | AC | 123 ms
64,424 KB |
testcase_05 | AC | 110 ms
64,580 KB |
testcase_06 | AC | 111 ms
64,000 KB |
testcase_07 | AC | 112 ms
64,356 KB |
testcase_08 | AC | 76 ms
64,080 KB |
testcase_09 | AC | 73 ms
64,380 KB |
testcase_10 | AC | 111 ms
63,912 KB |
testcase_11 | AC | 85 ms
64,396 KB |
testcase_12 | AC | 89 ms
64,036 KB |
testcase_13 | AC | 104 ms
64,276 KB |
testcase_14 | AC | 92 ms
64,408 KB |
testcase_15 | AC | 98 ms
64,160 KB |
testcase_16 | AC | 73 ms
64,148 KB |
testcase_17 | AC | 91 ms
64,152 KB |
testcase_18 | AC | 111 ms
64,128 KB |
testcase_19 | AC | 72 ms
64,632 KB |
testcase_20 | AC | 86 ms
64,540 KB |
testcase_21 | AC | 72 ms
64,464 KB |
testcase_22 | AC | 97 ms
64,288 KB |
testcase_23 | AC | 122 ms
64,124 KB |
testcase_24 | AC | 117 ms
64,176 KB |
testcase_25 | AC | 75 ms
64,572 KB |
testcase_26 | AC | 112 ms
63,980 KB |
testcase_27 | AC | 111 ms
64,432 KB |
testcase_28 | AC | 111 ms
64,220 KB |
testcase_29 | AC | 112 ms
63,980 KB |
testcase_30 | AC | 113 ms
64,096 KB |
testcase_31 | AC | 136 ms
64,020 KB |
testcase_32 | AC | 112 ms
64,020 KB |
testcase_33 | AC | 112 ms
64,088 KB |
testcase_34 | AC | 86 ms
64,484 KB |
testcase_35 | AC | 95 ms
64,680 KB |
testcase_36 | AC | 109 ms
64,116 KB |
testcase_37 | AC | 87 ms
63,976 KB |
testcase_38 | AC | 103 ms
63,920 KB |
testcase_39 | AC | 110 ms
64,120 KB |
testcase_40 | AC | 122 ms
64,724 KB |
testcase_41 | AC | 72 ms
63,952 KB |
testcase_42 | AC | 112 ms
64,148 KB |
testcase_43 | AC | 80 ms
64,376 KB |
testcase_44 | AC | 88 ms
64,144 KB |
testcase_45 | AC | 111 ms
64,484 KB |
testcase_46 | AC | 82 ms
63,944 KB |
testcase_47 | AC | 111 ms
64,476 KB |
testcase_48 | AC | 72 ms
64,160 KB |
testcase_49 | AC | 122 ms
63,920 KB |
testcase_50 | AC | 99 ms
64,388 KB |
testcase_51 | AC | 79 ms
64,352 KB |
testcase_52 | AC | 93 ms
64,136 KB |
testcase_53 | AC | 91 ms
64,160 KB |
testcase_54 | AC | 77 ms
63,956 KB |
testcase_55 | AC | 81 ms
64,480 KB |
testcase_56 | AC | 83 ms
64,672 KB |
testcase_57 | AC | 102 ms
63,984 KB |
testcase_58 | AC | 93 ms
63,936 KB |
testcase_59 | AC | 112 ms
64,428 KB |
testcase_60 | AC | 97 ms
64,380 KB |
testcase_61 | AC | 110 ms
64,360 KB |
testcase_62 | AC | 105 ms
64,356 KB |
testcase_63 | AC | 97 ms
64,416 KB |
testcase_64 | AC | 109 ms
64,416 KB |
testcase_65 | AC | 77 ms
63,992 KB |
testcase_66 | AC | 77 ms
63,912 KB |
testcase_67 | AC | 111 ms
64,088 KB |
testcase_68 | AC | 72 ms
64,236 KB |
testcase_69 | AC | 85 ms
63,936 KB |
testcase_70 | AC | 108 ms
63,992 KB |
testcase_71 | AC | 71 ms
64,104 KB |
testcase_72 | AC | 108 ms
64,436 KB |
testcase_73 | AC | 110 ms
64,232 KB |
testcase_74 | AC | 96 ms
63,948 KB |
testcase_75 | AC | 74 ms
64,472 KB |
testcase_76 | AC | 98 ms
64,408 KB |
testcase_77 | AC | 84 ms
64,560 KB |
testcase_78 | AC | 73 ms
64,668 KB |
testcase_79 | AC | 90 ms
64,212 KB |
testcase_80 | AC | 89 ms
64,224 KB |
testcase_81 | AC | 94 ms
64,028 KB |
testcase_82 | AC | 88 ms
64,144 KB |
testcase_83 | AC | 77 ms
64,508 KB |
testcase_84 | AC | 86 ms
64,056 KB |
testcase_85 | AC | 92 ms
64,516 KB |
testcase_86 | AC | 76 ms
64,040 KB |
testcase_87 | AC | 85 ms
64,640 KB |
testcase_88 | AC | 86 ms
64,504 KB |
testcase_89 | AC | 83 ms
64,104 KB |
testcase_90 | AC | 75 ms
64,584 KB |
testcase_91 | AC | 73 ms
64,360 KB |
testcase_92 | AC | 109 ms
63,952 KB |
testcase_93 | AC | 76 ms
64,248 KB |
testcase_94 | AC | 98 ms
63,948 KB |
testcase_95 | AC | 106 ms
64,320 KB |
testcase_96 | AC | 88 ms
64,028 KB |
testcase_97 | AC | 108 ms
64,264 KB |
testcase_98 | AC | 82 ms
64,472 KB |
testcase_99 | AC | 111 ms
63,980 KB |
ソースコード
#include <bits/stdc++.h> #include <stdlib.h> #include <time.h> using namespace std; #define ll long long #define all(x) (x).begin(), (x).end() #define yes "Yes" #define no "No" #define ret return #define xin cin #define cpit cout #define farg frag #define fix(x) fixed << setprecision(x) #define fore(p, v) for (auto &p : v) #define mp(a, b) make_pair(a, b) #define mt(a, b, c) make_tuple(a, b, c) #define rep(i, l, r) for (ll i = (l); i < (r); i++) #define inf ((1LL << 62) - (1LL << 31)) #define built(bit) __builtin_popcount(bit) #define Pi 3.14159265 ll mod = 1e9 + 7; int main() { ll turn = 0; ll level = 1; ll ex = 0; ll T = 1000; ll Now_X = 12; vector<vector<ll>> Board(1e5, vector<ll>(25, 0)); vector<vector<ll>> Exp(1e5, vector<ll>(25, 0)); while (T--) { ll N; cin >> N; if (N == -1) break; vector<ll> H(N), P(N), X(N); for (ll i = 0; i < N; i++) { cin >> H[i] >> P[i] >> X[i]; Board[turn + 59][X[i]] += H[i]; Exp[turn + 59][X[i]] += P[i]; } if (Board[turn + 1][Now_X] == 0) { cout << 'S' << endl; } else if (Board[turn + 1][(Now_X + 1) % 25] == 0) { cout << 'R' << endl; Now_X = (Now_X + 1) % 25; } else if (Board[turn + 1][(Now_X + 24) % 25] == 0) { cout << 'L' << endl; Now_X = (Now_X + 24) % 25; } else break; turn++; } }