結果

問題 No.35 タイパー高橋
ユーザー huffman56huffman56
提出日時 2022-05-01 10:33:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 1,008 bytes
コンパイル時間 4,254 ms
コンパイル使用メモリ 103,140 KB
実行使用メモリ 21,692 KB
最終ジャッジ日時 2023-09-13 02:22:53
合計ジャッジ時間 5,208 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,692 KB
testcase_01 AC 60 ms
21,604 KB
testcase_02 AC 62 ms
21,668 KB
testcase_03 AC 61 ms
21,600 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;


namespace yukicoder
{
    class Program
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());
            int clear = 0;
            int fail = 0;

            for (int i = 0; i < n; i++)
            {
                var x = Console.ReadLine().Split().ToArray();
                var type = (12 * int.Parse(x[0])) / 1000;

                if (x[1].Length > type)
                {
                    clear += type;
                    fail += x[1].Length - type;
                }
                else
                {
                    clear += x[1].Length;
                }
            }

            Console.WriteLine(clear + " " + fail);

        }
    }
}
0