結果

問題 No.1713 trick or treat!
ユーザー Today03
提出日時 2022-05-06 05:03:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 422 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 191,720 KB
最終ジャッジ日時 2025-01-29 02:38:53
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

void _main()
{
    int a, b;
    cin >> a >> b;
    
    int n = a | b;
    
    long long ans = 1;
    for (int i = 1; i <= n; i++)
        ans *= i;

    cout << ans << '\n';
    return;
}

//----------------------------------------------------------------

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(15);
    _main();
}
0