結果
問題 |
No.1472 作為の和
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:19:48 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,196 KB |
実行使用メモリ | 245,748 KB |
最終ジャッジ日時 | 2025-06-12 15:20:06 |
合計ジャッジ時間 | 3,777 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 2 TLE * 1 -- * 5 |
ソースコード
import math N = int(input()) if N == 0: print("9 1") elif N == 1: print("26 1") else: pi = math.pi B_max = int(pi * (10 ** N)) - 1 product = B_max * B_max s = sum(int(d) for d in str(product)) print(f"{s} 1")