結果
| 問題 |
No.746 7の倍数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-17 18:46:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| コード長 | 795 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-25 08:48:28 |
| 合計ジャッジ時間 | 2,530 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
"""
from math import gcd
from itertools import accumulate, combinations, permutations, product
from bisect import bisect, bisect_left
from collections import Counter, defaultdict, deque
from heapq import heappush, heappop
from functools import reduce
from operator import add, mul, sub, truediv, floordiv, mod
from decimal import *
getcontext().prec = 500
import string
ascii = string.ascii_lowercase
"""
import sys
def main():
sys.setrecursionlimit(100000)
sys.set_int_max_str_digits(100000)
input = lambda: sys.stdin.readline()[:-1]
N = int(input())
n = 10**N
d, m = divmod(n // 7, n)
if m:
ans = "".join([str(d), ".", str(m)])
else:
ans = str(d)
print(ans)
if not __debug__:
f = open(sys.argv[1], "r")
sys.stdin = f
main()