Submission #74639864
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define ll long long
#define se second
#define fi first
#define pb push_back
#define pf push_front
#define ld long double
#define INF 1e18
#define lcm(x, y) x / __gcd(x, y) * y
#define Pair pair<ll, ll>
#define pii pair<int, int>
#define Pq priority_queue<ll>
#define Pqr priority_queue<ll, vector<ll>, greater<ll >>
#define clockst clock_t tStart = clock()
#define clockfin printf("Time taken: %.2fs\n",(double)(clock() - tStart)/CLOCKS_PER_SEC)
#define all(x) x.begin(), x.end()
#define sz(x)((ll)(x).size())
#define eb emplace_back
#define mp make_pair
#define mems(a, x) memset((a),(x), sizeof(a))
//#pragma GCC optimize("O3,unroll-loops")
//#pragma GCC target("avx2,popcnt,lzcnt,bmi,bmi2,fma")
typedef unsigned long long ull;
void init() { freopen("cf.INP", "r", stdin); freopen("cf.OUT", "w", stdout); }
ll xc[5] = { -1, 1, 0, 0 }, yc[5] = { 0, 0, 1, -1 };
ll xc8[8] = { -1, 1, 0, 0, -1, 1, -1, 1 };
ll yc8[8] = { 0, 0, 1, -1, -1, 1, 1, -1 };
const long double pi = acosl(-1.0L);
template<class T1, class T2> bool cmax(T1 &x, const T2 &y) { if(x < y) { x = y; return 1; } return 0; }
inline ll read()
{
ll x = 0;
char ch = getchar();;
bool str = 1;
while(ch < '0' || ch > '9')
{
if(ch == '-') str = 0; ch = getchar();;
}
while(ch >= '0' && ch <= '9')
{
x =((x << 3) +(x << 1)) + ch - '0';
ch = getchar();;
}
return str ? x : x;
}
void solve()
{
ll M, D;
cin >> M >> D;
if ((M == 1 && D == 7) ||
(M == 3 && D == 3) ||
(M == 5 && D == 5) ||
(M == 7 && D == 7) ||
(M == 9 && D == 9))
cout << "Yes\n";
else cout << "No\n";
}
bool multest = 0;
int main()
{
fast;
ll t = 1;
if(multest) cin >> t;
while(t--) solve();
return 0;
}
Submission Info
| Submission Time |
|
| Task |
A - Gothec |
| User |
khanhdang2109 |
| Language |
C++23 (Clang 21.1.0) |
| Score |
100 |
| Code Size |
1957 Byte |
| Status |
AC |
| Exec Time |
2 ms |
| Memory |
3108 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
100 / 100 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 00-sample-04.txt |
| All |
00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 00-sample-04.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt |
| Case Name |
Status |
Exec Time |
Memory |
| 00-sample-01.txt |
AC |
2 ms |
2928 KiB |
| 00-sample-02.txt |
AC |
1 ms |
3036 KiB |
| 00-sample-03.txt |
AC |
1 ms |
3004 KiB |
| 00-sample-04.txt |
AC |
1 ms |
2992 KiB |
| 01-01.txt |
AC |
1 ms |
3044 KiB |
| 01-02.txt |
AC |
1 ms |
3060 KiB |
| 01-03.txt |
AC |
1 ms |
3004 KiB |
| 01-04.txt |
AC |
1 ms |
2932 KiB |
| 01-05.txt |
AC |
1 ms |
2928 KiB |
| 01-06.txt |
AC |
1 ms |
3016 KiB |
| 01-07.txt |
AC |
1 ms |
3004 KiB |
| 01-08.txt |
AC |
1 ms |
3036 KiB |
| 01-09.txt |
AC |
1 ms |
3060 KiB |
| 01-10.txt |
AC |
1 ms |
3100 KiB |
| 01-11.txt |
AC |
1 ms |
2972 KiB |
| 01-12.txt |
AC |
1 ms |
3108 KiB |
| 01-13.txt |
AC |
1 ms |
3044 KiB |