結果

問題 No.1903 Day1
ユーザー dn6049949dn6049949
提出日時 2022-04-15 21:25:29
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 93 ms / 1,000 ms
コード長 655 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 76,476 KB
最終ジャッジ日時 2023-08-26 07:28:53
合計ジャッジ時間 1,920 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,548 KB
testcase_01 AC 82 ms
71,612 KB
testcase_02 AC 93 ms
76,412 KB
testcase_03 AC 88 ms
71,652 KB
testcase_04 AC 84 ms
71,604 KB
testcase_05 AC 86 ms
71,388 KB
testcase_06 AC 85 ms
71,612 KB
testcase_07 AC 86 ms
71,568 KB
testcase_08 AC 93 ms
76,388 KB
testcase_09 AC 91 ms
76,476 KB
testcase_10 AC 93 ms
76,476 KB
権限があれば一括ダウンロードができます

ソースコード

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()
    for i in range(1,1000000):
        if i%7 == 0:
            n += 6
        n -= 1
        if n == 0:
            print(i)
            return
    return


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