結果
| 問題 |
No.3186 Big Order
|
| コンテスト | |
| ユーザー |
kmjp
|
| 提出日時 | 2025-06-20 23:28:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2025-06-20 23:28:15 |
| 合計ジャッジ時間 | 3,052 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | RE * 34 |
ソースコード
import sys
import math
T=int(input())
for t in range(T):
A,B,C=map(int,input().strip().split(" "))
p = 0
q = 1
for i in range(1,136):
A2=A**i
num = 0
while A2 % C == 0:
num += 1
A2 /= C
# if p/q < num / i
if p * i < num * q:
p = num
q = i
print(p * B // q % 998244353)
kmjp