結果

問題 No.1903 Day1
ユーザー dn6049949dn6049949
提出日時 2022-04-15 21:21:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 680 bytes
コンパイル時間 493 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,992 KB
最終ジャッジ日時 2023-08-26 07:23:25
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,808 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 86 ms
71,540 KB
testcase_04 AC 82 ms
71,400 KB
testcase_05 AC 84 ms
71,844 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def IR(n):
    return [I() for _ in range(n)]
def LIR(n):
    return [LI() for _ in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

def main():
    n = I()
    l = 0
    r = 10**10
    while l+1 < r:
        m = (l+r) >> 1
        s = n+(m//7)
        if s <= m:
            r = m
        else:
            l = m
    print(r)
    return


if __name__ == "__main__":
    main()
0