提出 #75415236


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define all(x) (x).begin(), (x).end()
#define pb push_back

template<class T> inline bool chmax(T& a, T b) { return a < b ? a = b, 1 : 0; }
template<class T> inline bool chmin(T& a, T b) { return a > b ? a = b, 1 : 0; }

const int MOD = 1e9 + 7;

void solve() {
    
    int x;cin>>x;
    if(x>=3&&x<=18)cout<<"Yes\n";
    else cout<<"No\n";

    
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int tt = 1;
    //cin>>tt;
    while (tt--) {
        solve();
    }

    return 0;
}

提出情報

提出日時
問題 A - Dice
ユーザ lavi3
言語 C++23 (GCC 15.2.0)
得点 100
コード長 716 Byte
結果 AC
実行時間 1 ms
メモリ 3632 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 10
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
random_01.txt AC 1 ms 3580 KiB
random_02.txt AC 1 ms 3632 KiB
random_03.txt AC 1 ms 3408 KiB
random_04.txt AC 1 ms 3548 KiB
random_05.txt AC 1 ms 3536 KiB
random_06.txt AC 1 ms 3536 KiB
random_07.txt AC 1 ms 3624 KiB
random_08.txt AC 1 ms 3548 KiB
sample_01.txt AC 1 ms 3624 KiB
sample_02.txt AC 1 ms 3384 KiB