結果

問題 No.1903 Day1
ユーザー Goltermann大和Goltermann大和
提出日時 2022-04-15 21:41:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 8,208 KB
最終ジャッジ日時 2023-08-26 07:40:40
合計ジャッジ時間 861 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,196 KB
testcase_01 AC 15 ms
7,836 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 13 ms
8,080 KB
testcase_04 AC 14 ms
8,176 KB
testcase_05 AC 13 ms
8,208 KB
testcase_06 AC 14 ms
7,908 KB
testcase_07 AC 13 ms
7,856 KB
testcase_08 AC 13 ms
7,836 KB
testcase_09 AC 14 ms
7,912 KB
testcase_10 AC 14 ms
7,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
n = int(input())
if n <= 6:
    print(n)
    sys.exit()
day = 0
while n > 6:
    study_day = (n//7)*7
    day += study_day 
    n = n%7 + (study_day//7)*6
day += 6
print(day)
0