Code Formula 2014 本選

Submission #1570508

Source codeソースコード

using System;

namespace code_formula_2014_final_b
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine());
            Console.WriteLine(n % 2 == 0 ? n / 2 : n / 2 + 3);
        }
    }
}

Submission

Task問題 B - 3歩進んで2歩下がる
User nameユーザ名 ひゅ~Men
Created time投稿日時
Language言語 C# (Mono 4.6.2.0)
Status状態 AC
Score得点 100
Source lengthソースコード長 272 Byte
File nameファイル名
Exec time実行時間 21 ms
Memory usageメモリ使用量 13140 KB

Test case

Set

Set name Score得点 / Max score Cases
All 100 / 100 sample_01.txt,sample_02.txt,test_1.txt,test_1000000000000000.txt,test_111723.txt,test_130146966901509.txt,test_161925824289921.txt,test_35454587585157.txt,test_5.txt,test_5540.txt,test_6021.txt,test_805.txt,test_845717671383532.txt,test_865385763670868.txt,sample_01.txt,sample_02.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
sample_01.txt AC 20 ms 9044 KB
sample_02.txt AC 20 ms 9044 KB
test_1.txt AC 21 ms 13140 KB
test_1000000000000000.txt AC 20 ms 9044 KB
test_111723.txt AC 20 ms 11092 KB
test_130146966901509.txt AC 21 ms 13140 KB
test_161925824289921.txt AC 20 ms 11092 KB
test_35454587585157.txt AC 20 ms 11092 KB
test_5.txt AC 20 ms 9044 KB
test_5540.txt AC 21 ms 11092 KB
test_6021.txt AC 20 ms 11092 KB
test_805.txt AC 20 ms 11092 KB
test_845717671383532.txt AC 21 ms 11092 KB
test_865385763670868.txt AC 20 ms 11092 KB