結果
| 問題 |
No.313 π
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-12-17 12:24:24 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 115 ms |
| コンパイル使用メモリ | 76,988 KB |
| 実行使用メモリ | 109,376 KB |
| 最終ジャッジ日時 | 2024-09-16 07:28:50 |
| 合計ジャッジ時間 | 13,378 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 1 |
| other | -- * 32 |
ソースコード
N = 10**200000
def arctan(m):
c = N
a = b = c / m
m2 = m * m
s = k = 1
while c:
b /= m2
k += 2
c, s = b / k, -s
a += c * s
return a
pi = str((arctan(5) * 4 - arctan(239)) * 4)
S = raw_input().replace(".","")
for i in xrange(200002):
if S[i] != pi[i]:
print S[i],pi[i]
break
Tawara