結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-01 10:33:17 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 1,008 bytes |
| コンパイル時間 | 5,540 ms |
| コンパイル使用メモリ | 104,832 KB |
| 実行使用メモリ | 19,456 KB |
| 最終ジャッジ日時 | 2024-06-30 13:01:51 |
| 合計ジャッジ時間 | 1,586 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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);
}
}
}