結果

問題 No.3168 [Cherry 7th Tune D] Manhole
ユーザー Kude
提出日時 2025-05-30 23:53:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,183 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 77,824 KB
最終ジャッジ日時 2025-05-30 23:53:19
合計ジャッジ時間 18,284 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353
for _ in range(int(input())):
    a, b, c = map(int, input().split())
    ans = (a * a + b * b + c * c) % mod * pow(c * c, mod - 2, mod) % mod
    print(ans)
0