結果
問題 |
No.1903 Day1
|
ユーザー |
![]() |
提出日時 | 2022-04-15 21:21:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 680 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 54,528 KB |
最終ジャッジ日時 | 2024-12-24 23:18:35 |
合計ジャッジ時間 | 1,193 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 3 WA * 5 |
ソースコード
#!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()