Submission #64034581


Source Code Expand

Copy
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, t[14];
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
while (scanf("%lld", &n) == 1)
{
t[n]++;
}
sort(t, t + 14);
if (t[13] >= 3 && t[12] >= 2) cout << "Yes";
else cout << "No";
return 0;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <bits/stdc++.h>
#define int long long
using namespace std;

int n, t[14];

signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    
    while (scanf("%lld", &n) == 1)
    {
        t[n]++;
    }

    sort(t, t + 14);
    if (t[13] >= 3 && t[12] >= 2) cout << "Yes";
    else cout << "No";

    return 0;
}

Submission Info

Submission Time
Task B - Full House 3
User Wenhaocheng1205
Language C++ 20 (gcc 12.2)
Score 250
Code Size 357 Byte
Status AC
Exec Time 1 ms
Memory 3888 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 250 / 250
Status
AC × 4
AC × 34
Set Name Test Cases
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
Case Name Status Exec Time Memory
hand_01.txt AC 1 ms 3664 KB
hand_02.txt AC 1 ms 3588 KB
hand_03.txt AC 1 ms 3772 KB
hand_04.txt AC 1 ms 3772 KB
sample_01.txt AC 1 ms 3704 KB
sample_02.txt AC 1 ms 3888 KB
sample_03.txt AC 1 ms 3704 KB
sample_04.txt AC 1 ms 3764 KB
test_01.txt AC 1 ms 3584 KB
test_02.txt AC 1 ms 3676 KB
test_03.txt AC 1 ms 3516 KB
test_04.txt AC 1 ms 3768 KB
test_05.txt AC 1 ms 3704 KB
test_06.txt AC 1 ms 3644 KB
test_07.txt AC 1 ms 3708 KB
test_08.txt AC 1 ms 3764 KB
test_09.txt AC 1 ms 3764 KB
test_10.txt AC 1 ms 3516 KB
test_11.txt AC 1 ms 3644 KB
test_12.txt AC 1 ms 3640 KB
test_13.txt AC 1 ms 3768 KB
test_14.txt AC 1 ms 3672 KB
test_15.txt AC 1 ms 3584 KB
test_16.txt AC 1 ms 3652 KB
test_17.txt AC 1 ms 3700 KB
test_18.txt AC 1 ms 3888 KB
test_19.txt AC 1 ms 3888 KB
test_20.txt AC 1 ms 3692 KB
test_21.txt AC 1 ms 3668 KB
test_22.txt AC 1 ms 3632 KB
test_23.txt AC 1 ms 3640 KB
test_24.txt AC 1 ms 3644 KB
test_25.txt AC 1 ms 3672 KB
test_26.txt AC 1 ms 3704 KB


2025-04-11 (Fri)
17:09:18 +00:00