Submission #3237744
Source Code Expand
using static System.Console; using static System.Convert; class Program { static void Main(string[] args) { var people = ToInt32(ReadLine()); var input = ReadLine().Split(' '); var day = ToInt32(input[0]); var result = ToInt32(input[1]); for(var i = 0; i < people; i++) { var bet = ToInt32(ReadLine()); result += 1 + (day-1) / bet; } WriteLine(result); } }
Submission Info
Submission Time | |
---|---|
Task | B - Chocolate |
User | hibatibati |
Language | C# (Mono 4.6.2.0) |
Score | 200 |
Code Size | 479 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 11220 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 20 ms | 11220 KB |
02.txt | AC | 20 ms | 11220 KB |
03.txt | AC | 21 ms | 11220 KB |
04.txt | AC | 20 ms | 11220 KB |
05.txt | AC | 20 ms | 9172 KB |
06.txt | AC | 21 ms | 11220 KB |
07.txt | AC | 20 ms | 9172 KB |
08.txt | AC | 21 ms | 11220 KB |
09.txt | AC | 21 ms | 11220 KB |
sample-01.txt | AC | 19 ms | 9172 KB |
sample-02.txt | AC | 20 ms | 11220 KB |
sample-03.txt | AC | 20 ms | 9172 KB |