AtCoder Regular Contest 068

Submission #4024420

Source codeソースコード

x = int(input())
if x % 11 == 0:
    r = 0
elif x % 11 <= 6:
    r = 1
else:
    r = 2
ans = 2 * (x // 11) + r
print(ans)

Submission

Task問題 C - X: Yet Another Die Game
User nameユーザ名 pynomi
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 300
Source lengthソースコード長 129 Byte
File nameファイル名
Exec time実行時間 18 ms
Memory usageメモリ使用量 2940 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - 00_example_01.txt,00_example_02.txt
All 300 / 300 00_example_01.txt,00_example_02.txt,01.txt,02.txt,03.txt,04.txt,05.txt,06.txt,07.txt,08.txt,09.txt,10.txt,11.txt,12.txt,13.txt,14.txt,15.txt,16.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_example_01.txt AC 18 ms 2940 KB
00_example_02.txt AC 18 ms 2940 KB
01.txt AC 17 ms 2940 KB
02.txt AC 17 ms 2940 KB
03.txt AC 18 ms 2940 KB
04.txt AC 17 ms 2940 KB
05.txt AC 18 ms 2940 KB
06.txt AC 18 ms 2940 KB
07.txt AC 18 ms 2940 KB
08.txt AC 18 ms 2940 KB
09.txt AC 18 ms 2940 KB
10.txt AC 18 ms 2940 KB
11.txt AC 18 ms 2940 KB
12.txt AC 18 ms 2940 KB
13.txt AC 18 ms 2940 KB
14.txt AC 18 ms 2940 KB
15.txt AC 17 ms 2940 KB
16.txt AC 18 ms 2940 KB