結果

問題 No.3353 リウヴィルの定数計算
コンテスト
ユーザー SnowBeenDiding
提出日時 2025-11-14 21:23:25
言語 C++23
(gcc 13.3.0 + boost 1.89.0)
結果
WA  
実行時間 -
コード長 488 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,536 ms
コンパイル使用メモリ 335,496 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-11-14 21:23:39
合計ジャッジ時間 6,220 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

#include <atcoder/all>
#define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
using namespace atcoder;
using namespace std;

typedef long long ll;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout << fixed << setprecision(12);
    int n;
    cin >> n;
    int nw = 1;
    rep(i, 1, 10) {
        nw *= i;
        if (nw == n) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}
0