結果
| 問題 |
No.1472 作為の和
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:44:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 209,640 KB |
| 最終ジャッジ日時 | 2025-06-12 20:44:41 |
| 合計ジャッジ時間 | 3,912 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
gew1fw