結果
問題 |
No.35 タイパー高橋
|
ユーザー |
|
提出日時 | 2017-12-17 20:51:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 1,175 bytes |
コンパイル時間 | 1,017 ms |
コンパイル使用メモリ | 104,192 KB |
実行使用メモリ | 18,560 KB |
最終ジャッジ日時 | 2024-12-15 22:55:23 |
合計ジャッジ時間 | 1,624 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace yukicore { class Program { private static void Main(string[] args) { Console.ReadLine(); double ntime = 1000.0 / 12.0; int sum = 0; int sucsess = 0; while (true) { var t = Console.ReadLine(); if(string.IsNullOrEmpty(t)) break; var tmp= t.Split(' '); int times = int.Parse(tmp[0]); int counts = tmp[1].Length; var val = counts- (1.0 * times / ntime); if (val <= 0) { val = 0; sucsess+=counts; } else { if (val % 1 != 0) val = Math.Floor(val) + 1; sum += (int)val; sucsess += counts - (int) val; } } Console.WriteLine(sucsess+" "+sum); } } }