結果
問題 |
No.3168 [Cherry 7th Tune D] Manhole
|
ユーザー |
👑 ![]() |
提出日時 | 2025-05-30 23:50:51 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 159 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 3,060 ms |
コンパイル使用メモリ | 82,228 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-30 23:51:00 |
合計ジャッジ時間 | 6,365 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 21 |
ソースコード
#include <iostream> #include <atcoder/modint> int main(){ std::cin.tie(nullptr)->sync_with_stdio(false); int N; std::cin >> N; while(N--){ long long a, b, c; std::cin >> a >> b >> c; std::cout << (atcoder::modint998244353(a*a+b*b+c*c)/(c*c)).val() << "\n"; } return 0; }