結果

問題 No.35 タイパー高橋
ユーザー うわばみうわばみ
提出日時 2020-04-29 15:59:37
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 513 bytes
コンパイル時間 1,379 ms
コンパイル使用メモリ 59,252 KB
実行使用メモリ 22,748 KB
最終ジャッジ日時 2023-08-19 06:28:23
合計ジャッジ時間 2,406 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,744 KB
testcase_01 AC 55 ms
22,700 KB
testcase_02 AC 56 ms
22,748 KB
testcase_03 AC 56 ms
20,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int ok = 0;
        int no = 0;
        for(int i = 0; i < n; i++)
        {
            string[] s = Console.ReadLine().Split();
            int num = int.Parse(s[0]);
            int temp = s[1].Length - (int)(num * 0.012f);
            if(temp < 0)
                temp = 0;
            ok += s[1].Length - temp;
            no += temp;
        }
        Console.WriteLine($"{ok} {no}");
    }
}
0