結果

問題 No.35 タイパー高橋
ユーザー takosamatakosama
提出日時 2017-12-17 20:51:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 1,175 bytes
コンパイル時間 2,368 ms
コンパイル使用メモリ 102,876 KB
実行使用メモリ 20,928 KB
最終ジャッジ日時 2023-08-22 04:51:25
合計ジャッジ時間 2,727 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,824 KB
testcase_01 AC 53 ms
18,880 KB
testcase_02 AC 53 ms
20,928 KB
testcase_03 AC 53 ms
20,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace yukicore
{
     class Program
    {
        private static void Main(string[] args)
        {
            Console.ReadLine();
            double ntime = 1000.0 / 12.0;
           int sum = 0;
            int sucsess = 0;
            while (true)
            {
              
                var t = Console.ReadLine();
                if(string.IsNullOrEmpty(t)) break;
              var tmp=  t.Split(' ');
             int   times = int.Parse(tmp[0]);
             int   counts = tmp[1].Length;
                var val = counts- (1.0 * times / ntime);
                if (val <= 0)
                {
                    val = 0;
                    sucsess+=counts;
                }
            else
                {
                    if (val % 1 != 0)
                        val = Math.Floor(val) + 1;
                sum += (int)val;
                    sucsess += counts - (int) val;
                }
            }
            Console.WriteLine(sucsess+" "+sum);
        }
    }
}
0