結果
問題 |
No.35 タイパー高橋
|
ユーザー |
|
提出日時 | 2017-12-17 20:50:10 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,117 bytes |
コンパイル時間 | 863 ms |
コンパイル使用メモリ | 112,076 KB |
実行使用メモリ | 26,396 KB |
最終ジャッジ日時 | 2024-12-15 22:54:58 |
合計ジャッジ時間 | 1,657 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 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++; } else { if (val % 1 != 0) val = Math.Floor(val) + 1; } sum += (int)val; } Console.WriteLine(sucsess+" "+sum); } } }