結果

問題 No.1206 OR, OR, OR......
ユーザー 👑 tatt61880tatt61880
提出日時 2021-04-04 12:44:43
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 2,148 ms
コンパイル使用メモリ 148,504 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-14 18:16:37
合計ジャッジ時間 3,372 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

func main()
	const mod: int :: 998244353
	var t: int :: cui@inputInt()
	for(1, t)
		var n: int :: cui@inputInt()
		var k: int :: cui@inputInt()
		var ans: int :: (math@modPow(2, n * k, mod) - math@modPow(2, (n - 1) * k, mod) + mod) * n % mod
		do cui@print("\{ans}\n")
	end for
end func
0