結果

問題 No.1713 trick or treat!
ユーザー トミートミー
提出日時 2023-12-28 01:18:37
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 200,760 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-12-28 01:18:40
合計ジャッジ時間 2,820 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 WA -
testcase_03 AC 2 ms
6,676 KB
testcase_04 WA -
testcase_05 AC 2 ms
6,676 KB
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0