結果

問題 No.3168 [Cherry 7th Tune D] Manhole
ユーザー titia
提出日時 2025-06-12 00:35:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 187 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-06-12 00:36:15
合計ジャッジ時間 33,781 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

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