結果
問題 | No.2155 みちらcolor |
ユーザー | ゾビオ |
提出日時 | 2022-12-09 23:35:19 |
言語 | C++23 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,590 bytes |
コンパイル時間 | 5,270 ms |
コンパイル使用メモリ | 310,720 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 23:07:29 |
合計ジャッジ時間 | 6,687 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 3 ms
6,820 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
6,820 KB |
testcase_05 | WA | - |
testcase_06 | AC | 2 ms
6,816 KB |
testcase_07 | WA | - |
testcase_08 | AC | 3 ms
6,816 KB |
testcase_09 | WA | - |
testcase_10 | AC | 2 ms
6,816 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
6,820 KB |
testcase_14 | WA | - |
testcase_15 | AC | 2 ms
6,816 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 3 ms
6,816 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 3 ms
6,816 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | AC | 3 ms
6,820 KB |
testcase_33 | WA | - |
testcase_34 | AC | 3 ms
6,816 KB |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | AC | 3 ms
6,816 KB |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | AC | 2 ms
6,820 KB |
testcase_43 | AC | 2 ms
6,816 KB |
testcase_44 | AC | 1 ms
6,816 KB |
testcase_45 | AC | 2 ms
6,816 KB |
testcase_46 | AC | 1 ms
6,820 KB |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | WA | - |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | AC | 2 ms
6,820 KB |
testcase_54 | WA | - |
testcase_55 | AC | 2 ms
6,820 KB |
testcase_56 | WA | - |
testcase_57 | AC | 2 ms
6,820 KB |
testcase_58 | WA | - |
testcase_59 | AC | 2 ms
6,816 KB |
testcase_60 | AC | 2 ms
6,820 KB |
testcase_61 | WA | - |
testcase_62 | AC | 2 ms
6,820 KB |
testcase_63 | AC | 2 ms
6,820 KB |
testcase_64 | WA | - |
testcase_65 | AC | 2 ms
6,816 KB |
testcase_66 | WA | - |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> // AtCoder using namespace std; using namespace atcoder; // AtCoder using uint = unsigned int; using ll = long long; using ull = unsigned long long; using ld = long double; using mint = modint998244353; // AtCoder 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 vbl = vector<bool>; using vvbl = vector<vector<bool>>; using vvvbl = vector<vector<vector<bool>>>; using vvvvbl = vector<vector<vector<vector<bool>>>>; using dll = deque<long long>; using ddll = deque<deque<long long>>; using dddll = deque<deque<deque<long long>>>; using ddddll = deque<deque<deque<deque<long long>>>>; using pll = pair<long long, long long>; using vpll = vector<pair<long long, long long>>; using vvpll = vector<vector<pair<long long, long long>>>; #define rep(i, n) for (long long i = 0; i < n; i++) #define reps(i, n) for (long long i = 1; i <= n; i++) #define rrep(i, n) for (long long i = n - 1; i >= 0; i--) #define rreps(i, n) for (long long i = n; i >= 1; i--) #define reep(i, a, b) for (long long i = a; i < b; i++) #define all(a) (a).begin(), (a).end() #define rall(a) (a).rbegin(), (a).rend() #define PI acos(-1.0) #define YesNo(flag) if(flag) { cout << "Yes" << endl; } else { cout << "No" << endl; } constexpr long long MOD = 998244353LL; constexpr long long INF = (1LL << 60); template<class T> void setcout(T n) {cout << setprecision(n) << fixed;} template<class T> void arrcout(T &a) { for(size_t i = 0; i < a.size(); i++) cout << (i ? " " : "") << a.at(i); cout << endl; } template<class T> void arrcout2(T &a) { for(size_t i = 0; i < a.size(); i++) { for(size_t j = 0; j < a[i].size(); j++) cout << (j ? " " : "") << a.at(i).at(j); cout << endl;} } template<class... T> constexpr auto min(T... a){return min(initializer_list<common_type_t<T...>>{a...});} template<class... T> constexpr auto max(T... a){return max(initializer_list<common_type_t<T...>>{a...});} template<class T> bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; } template<class T> bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; } //#pragma GCC target("avx2") //#pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") int main() { ll n, m, l; cin >> n >> m >> l; vll a(n); rep(i, n) cin >> a[i]; vvll dp(n + 1, vll(2010)); dp[0][l] = true; rep(i, n) rep(j, 2000) { dp[i + 1][(j + a[i]) / 2] |= dp[i][j]; } bool flag = false; rep(i, n + 1) flag |= dp[i][m]; YesNo(flag); }