結果

問題 No.1903 Day1
ユーザー JuJu
提出日時 2022-11-16 20:28:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 26 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-17 15:24:16
合計ジャッジ時間 913 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(n: int) -> int:
    day = 0

    while True:
        day += 1

        if day % 7 == 0:
            n += 6

        n -= 1
        if n <= 0:
            return day


if __name__ == "__main__":
    N = int(input())
    print(solve(N))
0