提出 #64050320
ソースコード 拡げる
#if !__INCLUDE_LEVEL__
#include __FILE__
void solve() {
int n = 7;
vector a(n, 0);
rep(i, n) cin >> a[i];
map<int, int> mp;
for (auto ai : a) mp[ai]++;
vector b(0, 0);
for (auto [k, v] : mp) {
b.push_back(v);
}
sort(all(b), greater<int>());
res(b[0] >= 3 && b[1] >= 2);
}
int main() {
// cin.tie(nullptr)->ios_base::sync_with_stdio(false);
int ts = 1;
// scanf("%d", &ts);
for (int ti = 0; ti < ts; ti++) solve();
}
#else
#include <bits/stdc++.h>
using namespace std;
/*
*/
#include <atcoder/all>
using namespace atcoder;
// #pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
// #pragma GCC target("avx2")
#define overload4(x, y, z, v, w, ...) w
#define rep1(i) for (int i = 0; i < 1e9 + 7; i++)
#define rep2(i, n) for (int i = 0; i < (int)(n); i++)
#define rep3(i, a, l) for (int i = a; i < (int)(l); i++)
#define rep4(i, a, l, d) for (int i = a; i < (int)(l); i += d)
#define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
#define all(obj) (obj).begin(), (obj).end()
#define rall(obj) (obj).rbegin(), (obj).rend()
#define siz(obj) ((int)(obj).size())
#define F first
#define S second
#define _1LL __int128_t(1)
using ll = long long;
using LL = __int128_t;
using P = pair<int, int>;
constexpr int inf = INT_MAX/2;
constexpr long long linf = LLONG_MAX/2;
void res(bool f) { printf("%s\n", f ? "Yes" : "No"); }
void resex(bool f) { printf("%s\n", f ? "Yes" : "No"); exit(0); }
template<typename T> inline bool chmax(T& a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T& a, T b) { return ((a > b) ? (a = b, true) : (false)); }
#endif
提出情報
| 提出日時 |
|
| 問題 |
B - Full House 3 |
| ユーザ |
sikk022 |
| 言語 |
C++ 20 (gcc 12.2) |
| 得点 |
250 |
| コード長 |
1761 Byte |
| 結果 |
AC |
| 実行時間 |
1 ms |
| メモリ |
3724 KiB |
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
250 / 250 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| All |
hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt |
| ケース名 |
結果 |
実行時間 |
メモリ |
| hand_01.txt |
AC |
1 ms |
3532 KiB |
| hand_02.txt |
AC |
1 ms |
3724 KiB |
| hand_03.txt |
AC |
1 ms |
3528 KiB |
| hand_04.txt |
AC |
1 ms |
3520 KiB |
| sample_01.txt |
AC |
1 ms |
3592 KiB |
| sample_02.txt |
AC |
1 ms |
3596 KiB |
| sample_03.txt |
AC |
1 ms |
3588 KiB |
| sample_04.txt |
AC |
1 ms |
3500 KiB |
| test_01.txt |
AC |
1 ms |
3656 KiB |
| test_02.txt |
AC |
1 ms |
3720 KiB |
| test_03.txt |
AC |
1 ms |
3532 KiB |
| test_04.txt |
AC |
1 ms |
3500 KiB |
| test_05.txt |
AC |
1 ms |
3588 KiB |
| test_06.txt |
AC |
1 ms |
3448 KiB |
| test_07.txt |
AC |
1 ms |
3600 KiB |
| test_08.txt |
AC |
1 ms |
3584 KiB |
| test_09.txt |
AC |
1 ms |
3532 KiB |
| test_10.txt |
AC |
1 ms |
3540 KiB |
| test_11.txt |
AC |
1 ms |
3584 KiB |
| test_12.txt |
AC |
1 ms |
3536 KiB |
| test_13.txt |
AC |
1 ms |
3672 KiB |
| test_14.txt |
AC |
1 ms |
3692 KiB |
| test_15.txt |
AC |
1 ms |
3592 KiB |
| test_16.txt |
AC |
1 ms |
3552 KiB |
| test_17.txt |
AC |
1 ms |
3724 KiB |
| test_18.txt |
AC |
1 ms |
3660 KiB |
| test_19.txt |
AC |
1 ms |
3532 KiB |
| test_20.txt |
AC |
1 ms |
3724 KiB |
| test_21.txt |
AC |
1 ms |
3468 KiB |
| test_22.txt |
AC |
1 ms |
3540 KiB |
| test_23.txt |
AC |
1 ms |
3540 KiB |
| test_24.txt |
AC |
1 ms |
3556 KiB |
| test_25.txt |
AC |
1 ms |
3596 KiB |
| test_26.txt |
AC |
1 ms |
3604 KiB |