結果
問題 |
No.1713 trick or treat!
|
ユーザー |
|
提出日時 | 2022-01-20 17:25:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 746 bytes |
コンパイル時間 | 1,733 ms |
コンパイル使用メモリ | 193,484 KB |
最終ジャッジ日時 | 2025-01-27 13:13:19 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 3 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define all(x) x.begin(), x.end() #define PI 3.1415926535897932384626 mt19937_64 rang(chrono::high_resolution_clock::now().time_since_epoch().count()); const int mod = 1'000'000'007; const int N = 3e5, M = N; void solve() { int a, b; cin >> a >> b; int g = a | b; int ans = 1; for(int i = 1; i <= g; i++){ ans *= i; } cout << ans << "\n"; } int main() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); srand(chrono::high_resolution_clock::now().time_since_epoch().count()); int t = 1; //cin >> t; while(t--) { solve(); } return 0; }