結果

問題 No.35 タイパー高橋
ユーザー mencottonmencotton
提出日時 2017-12-26 22:17:38
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 829 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 101,872 KB
実行使用メモリ 20,824 KB
最終ジャッジ日時 2023-08-22 22:04:23
合計ジャッジ時間 2,886 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
20,720 KB
testcase_01 AC 59 ms
18,672 KB
testcase_02 AC 60 ms
20,824 KB
testcase_03 AC 60 ms
20,736 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.Linq;
using System.Text;
using System.Threading.Tasks;

namespace template
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int finish = 0; int fall = 0;
            for (int i = 0; i < n; i++)
            {
                string[] s = Console.ReadLine().Split();
                if (12 * int.Parse(s[0]) / 1000 >= s[1].Length)
                {
                    finish += s[1].Length;
                }
                else
                {
                    finish += 12 * int.Parse(s[0]) / 1000;
                    fall += s[1].Length - 12 * int.Parse(s[0]) / 1000;
                }
            }
            Console.WriteLine(finish + " " + fall);
        }
    }
}
0