提出 #74644118
ソースコード 拡げる
#include<iostream>
#include<vector>
#include<string>
#include<map>
#include<queue>
#include<algorithm>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
#define PB push_back
#define len(s) (ll)s.size()
#define printl(x) cout<<x<<'\n'
#define print(x) cout<<x
#define fore(i,l,r) for(ll i=l; i<r; i++)
#define endl '\n'
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define all(x) x.begin(), x.end()
#define maxt(v) *max_element(all(v))
#define mint(v) *min_element(all(v))
#define srt(v) sort(all(v))
ll mod = 1000000007;
void Sieve(int n, vector<bool> &a, vi &b){
a.resize(n+1, true);
a[0] = a[1] = false;
for (int p = 2; p*p<= n; p++) {
if (a[p] == true) {
b.PB(p);
for (int i = p * p; i <= n; i += p){
a[i] = false;
}
}
}
}
const long long MOD = 1e9 + 7;
long long modpow(long long a, long long b) {
long long res = 1;
a %= MOD;
while (b > 0) {
if (b & 1) res = (res * a) % MOD;
a = (a * a) % MOD;
b >>= 1;
}
return res;
}
long long modinv(long long q) {
return modpow(q, MOD - 2);
}
// long long ans = (p * modinv(q)) % MOD;
void solve(){
ll m,d;
cin >> m >> d;
if(m==1 && d==7) cout << "Yes" << endl;
else if(m==3 && d==3)cout << "Yes" << endl;
else if(m==5 && d==5)cout << "Yes" << endl;
else if(m==7 && d==7)cout << "Yes" << endl;
else if(m==9 && d==9)cout << "Yes" << endl;
else cout << "No" << endl;
}
int main(){
fast;
ll t=1;
// cin >> t;
while(t--){
solve();
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Gothec |
| ユーザ | spai006 |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 1693 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3672 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00-sample-01.txt | AC | 1 ms | 3424 KiB |
| 00-sample-02.txt | AC | 1 ms | 3588 KiB |
| 00-sample-03.txt | AC | 1 ms | 3672 KiB |
| 00-sample-04.txt | AC | 1 ms | 3404 KiB |
| 01-01.txt | AC | 1 ms | 3672 KiB |
| 01-02.txt | AC | 1 ms | 3404 KiB |
| 01-03.txt | AC | 1 ms | 3552 KiB |
| 01-04.txt | AC | 1 ms | 3476 KiB |
| 01-05.txt | AC | 1 ms | 3404 KiB |
| 01-06.txt | AC | 1 ms | 3484 KiB |
| 01-07.txt | AC | 1 ms | 3460 KiB |
| 01-08.txt | AC | 1 ms | 3424 KiB |
| 01-09.txt | AC | 1 ms | 3460 KiB |
| 01-10.txt | AC | 1 ms | 3432 KiB |
| 01-11.txt | AC | 1 ms | 3476 KiB |
| 01-12.txt | AC | 1 ms | 3516 KiB |
| 01-13.txt | AC | 1 ms | 3432 KiB |