結果
問題 | 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,147 ms |
コンパイル使用メモリ | 200,308 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-27 15:37:32 |
合計ジャッジ時間 | 2,674 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,812 KB |
testcase_01 | AC | 2 ms
6,944 KB |
testcase_02 | WA | - |
testcase_03 | AC | 2 ms
6,944 KB |
testcase_04 | WA | - |
testcase_05 | AC | 2 ms
6,944 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
ソースコード
#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; }