結果

問題 No.3168 [Cherry 7th Tune D] Manhole
ユーザー titia
提出日時 2025-06-12 00:36:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 527 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 654 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 76,972 KB
最終ジャッジ日時 2025-06-12 00:36:24
合計ジャッジ時間 11,531 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

mod=998244353

T=int(input())
for tests in range(T):
    a,b,c=map(int,input().split())

    ANS=(a*a+b*b+c*c)*pow(c*c,mod-2,mod)%mod

    print(ANS)
0