Submission #2718541


Source Code Expand

Copy
N,K = map(int,input().split())

print((N-2)//(K-1)+1)

Submission Info

Submission Time
Task C - Minimization
User hahho
Language Python3 (3.4.3)
Score 300
Code Size 55 Byte
Status
Exec Time 17 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt
All 300 / 300 sample1.txt, sample2.txt, sample3.txt, 1.txt, 10.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt 17 ms 3060 KB
10.txt 17 ms 2940 KB
2.txt 17 ms 2940 KB
3.txt 17 ms 2940 KB
4.txt 17 ms 2940 KB
5.txt 17 ms 3060 KB
6.txt 17 ms 2940 KB
7.txt 17 ms 2940 KB
8.txt 17 ms 2940 KB
9.txt 17 ms 2940 KB
sample1.txt 17 ms 2940 KB
sample2.txt 17 ms 2940 KB
sample3.txt 17 ms 2940 KB