結果
問題 | No.1713 trick or treat! |
ユーザー |
![]() |
提出日時 | 2022-07-29 21:16:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 1,232 ms |
コンパイル使用メモリ | 158,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-19 12:21:09 |
合計ジャッジ時間 | 1,652 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll factorial(ll n) { ll ret = 1; while(n > 0) { ret *= n; n--; } return ret; } int main() { ll a, b; cin >> a >> b; cout << factorial(a|b) << endl; return 0; }