結果
問題 | No.1713 trick or treat! |
ユーザー |
|
提出日時 | 2022-07-22 17:07:52 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 15,196 ms |
コンパイル使用メモリ | 169,676 KB |
実行使用メモリ | 186,632 KB |
最終ジャッジ日時 | 2024-07-04 00:48:36 |
合計ジャッジ時間 | 16,404 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (122 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;using System.Linq;class Program{static void Main(){var i = Console.ReadLine().Split().Select(int.Parse).ToArray();var bitInt = (i[0] | i[1]);var ans = Factorial(bitInt);Console.WriteLine(ans);}public static long Factorial(int n){if (n == 0){return 1L;}else{return n * Factorial(n - 1);}}}