結果

問題 No.1903 Day1
ユーザー tassei903tassei903
提出日時 2022-04-15 21:35:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 464 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-08-26 07:37:30
合計ジャッジ時間 1,710 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,412 KB
testcase_01 AC 66 ms
71,420 KB
testcase_02 AC 68 ms
75,708 KB
testcase_03 AC 65 ms
71,340 KB
testcase_04 AC 66 ms
71,464 KB
testcase_05 AC 63 ms
71,496 KB
testcase_06 AC 64 ms
71,432 KB
testcase_07 AC 63 ms
71,148 KB
testcase_08 AC 66 ms
75,736 KB
testcase_09 AC 68 ms
75,896 KB
testcase_10 AC 70 ms
75,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################


n = ni()
x = 1
while n > 0:
    if x % 7 == 0:
        n += 5
    else:
        n -= 1
    x += 1
print(x-1)
0