Submission #7804331
Source Code Expand
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil
{
public static long[] ReadLongArray()
{
return ReadLine().Split().Select(x => long.Parse(x)).ToArray();
}
}
class Program
{
public static void Main()
{
var tmp = ReadLongArray();
long a = tmp[0], b = tmp[1], c = tmp[2];
long c2Eat = Math.Min(a+b+1, c);
WriteLine(c2Eat + b);
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Poisonous Cookies |
| User | unnohideyuki |
| Language | C# (Mono 4.6.2.0) |
| Score | 200 |
| Code Size | 507 Byte |
| Status | AC |
| Exec Time | 23 ms |
| Memory | 13396 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | s1.txt, s2.txt, s3.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt, s3.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 23 ms | 11348 KiB |
| 02.txt | AC | 23 ms | 11220 KiB |
| 03.txt | AC | 23 ms | 11348 KiB |
| 04.txt | AC | 23 ms | 11348 KiB |
| 05.txt | AC | 23 ms | 11348 KiB |
| 06.txt | AC | 23 ms | 13396 KiB |
| 07.txt | AC | 23 ms | 11220 KiB |
| 08.txt | AC | 22 ms | 9300 KiB |
| 09.txt | AC | 22 ms | 11220 KiB |
| s1.txt | AC | 23 ms | 11220 KiB |
| s2.txt | AC | 23 ms | 11220 KiB |
| s3.txt | AC | 22 ms | 9300 KiB |