結果
問題 |
No.1472 作為の和
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:22:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 216,832 KB |
最終ジャッジ日時 | 2025-06-12 15:22:40 |
合計ジャッジ時間 | 4,143 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 TLE * 1 -- * 5 |
ソースコード
n = int(input()) if n == 0: print("9 1") else: max_product = (int(3.141592653589793 * (10 ** n)) - 1) ** 2 sum_digits = sum(map(int, str(max_product))) print(f"{sum_digits} 1")