結果

問題 No.1713 trick or treat!
ユーザー 👑 tatt61880tatt61880
提出日時 2022-03-04 20:47:11
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 2,396 ms
コンパイル使用メモリ 144,460 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 22:27:46
合計ジャッジ時間 2,774 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

func main()
	var trick: bit64 :: cui@inputInt() $ bit64
	var treat: bit64 :: cui@inputInt() $ bit64
	var ans: int :: @f(trick.or(treat) $ int)
	do cui@print("\{ans}\n")
end func

func f(n: int): int
	var res: int :: 1
	for i(1, n)
		do res :* i
	end for
	ret res
end func
0