Submission #2721301
Source Code Expand
# # File : C.rb # Author : Kazune Takahashi # Created : 2018-6-23 21:01:02 # Powered by Visual Studio Code # n, k = gets.chomp.split(" ").map{|i| i.to_i} a = gets.chomp.split(" ").map{|i| i.to_i} ind = 0 for i in 0...a.size if (a[i] == 1) ind = i break end end if n == k puts 1 else puts 1 + (n - k + k - 2) / (k - 1) end
Submission Info
Submission Time | |
---|---|
Task | D - Snuke Numbers |
User | kazunetakahashi |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 368 Byte |
Status | RE |
Exec Time | 7 ms |
Memory | 1788 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample.txt |
All | sample.txt, 1.txt, sample.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | RE | 7 ms | 1788 KB |
sample.txt | RE | 7 ms | 1788 KB |