結果
問題 | No.1713 trick or treat! |
ユーザー | ccc |
提出日時 | 2022-07-22 17:07:52 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 12,562 ms |
コンパイル使用メモリ | 144,952 KB |
実行使用メモリ | 163,496 KB |
最終ジャッジ日時 | 2023-09-17 02:58:41 |
合計ジャッジ時間 | 8,957 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
28,704 KB |
testcase_01 | AC | 50 ms
28,696 KB |
testcase_02 | AC | 50 ms
28,464 KB |
testcase_03 | AC | 51 ms
28,580 KB |
testcase_04 | AC | 50 ms
28,704 KB |
testcase_05 | AC | 51 ms
28,504 KB |
testcase_06 | AC | 50 ms
28,644 KB |
testcase_07 | AC | 51 ms
163,496 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 142 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.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); } } }