結果

問題 No.35 タイパー高橋
ユーザー ProgramingWeProgramingWe
提出日時 2017-10-30 13:30:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 886 bytes
コンパイル時間 2,648 ms
コンパイル使用メモリ 102,468 KB
実行使用メモリ 15,204 KB
最終ジャッジ日時 2023-08-14 13:06:58
合計ジャッジ時間 3,703 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
14,920 KB
testcase_01 AC 57 ms
14,904 KB
testcase_02 AC 57 ms
15,100 KB
testcase_03 AC 58 ms
15,204 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.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int allstr = 0;
            int tnum = 0;
            int miss = 0;
            for (int i = 0; i < N; i++)
            {
                string[] strTS = Console.ReadLine().Split(' ');
                int type = int.Parse(strTS[0]) * 12 / 1000;
                int str = strTS[1].Length;
                if (str > type)
                {
                    tnum = tnum + type;
                }
                else
                {
                    tnum = tnum + str;
                }
                allstr = allstr + str;

            }
            miss = allstr - tnum;
            Console.WriteLine(tnum + " " + miss);
        }
    }
}
0