結果
問題 | No.35 タイパー高橋 |
ユーザー |
![]() |
提出日時 | 2017-10-30 13:30:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 886 bytes |
コンパイル時間 | 886 ms |
コンパイル使用メモリ | 104,192 KB |
実行使用メモリ | 18,304 KB |
最終ジャッジ日時 | 2024-11-22 10:38:17 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.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); } } }