結果
問題 | No.1713 trick or treat! |
ユーザー |
|
提出日時 | 2023-12-28 01:18:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 1,898 ms |
コンパイル使用メモリ | 190,908 KB |
最終ジャッジ日時 | 2025-02-18 14:47:52 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 3 |
ソースコード
#include<bits/stdc++.h> using namespace std; int fac(int n){ if(n==1){ return 1; } else{ return n*fac(n-1); } } int main(){ int trick,treat; cin>>trick>>treat; cout<<fac(trick|treat)<<endl; }