提出 #7804331
ソースコード 拡げる
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);
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Poisonous Cookies |
| ユーザ | unnohideyuki |
| 言語 | C# (Mono 4.6.2.0) |
| 得点 | 200 |
| コード長 | 507 Byte |
| 結果 | AC |
| 実行時間 | 23 ms |
| メモリ | 13396 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |