Submission #3607853
Source Code Expand
N,K=map(int,input().strip().split(' ')) a=list(map(int, input().split())) #for i in range(N): # if a[i]==1: # mi=i #r=N-mi #l=mi+1 #if K==N: # ans=1 #else: ans=-(-(N-1)//(K-1)) print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - Minimization |
User | nphys |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 215 Byte |
Status | AC |
Exec Time | 40 ms |
Memory | 14008 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | 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 | AC | 26 ms | 7212 KB |
10.txt | AC | 34 ms | 10940 KB |
2.txt | AC | 40 ms | 13880 KB |
3.txt | AC | 30 ms | 9036 KB |
4.txt | AC | 39 ms | 12912 KB |
5.txt | AC | 40 ms | 14008 KB |
6.txt | AC | 40 ms | 14008 KB |
7.txt | AC | 19 ms | 3828 KB |
8.txt | AC | 37 ms | 12420 KB |
9.txt | AC | 17 ms | 3060 KB |
sample1.txt | AC | 17 ms | 2940 KB |
sample2.txt | AC | 17 ms | 2940 KB |
sample3.txt | AC | 17 ms | 2940 KB |