Submission #348247
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCorder { class Program { static void Main(string[] args) { double m = double.Parse(Console.ReadLine()) / 1000; var vv = string.Empty; if (m < 0.1) vv = "00"; if (m >= 0.1 && m < 5) vv = string.Format("{0:00}", m * 10); if (m >= 6 && m <= 30) vv = string.Format("{0:00}", m + 50); if (m >= 35 && m <= 70) vv = string.Format("{0:00}",(((m - 30) / 5) + 80); if (m > 70) vv = "89"; Console.WriteLine(vv); } } }
Submission Info
Submission Time | |
---|---|
Task | B - 視程の通報 |
User | yzk |
Language | C# (Mono 2.10.8.1) |
Score | 0 |
Code Size | 730 Byte |
Status | CE |
Compile Error
./Main.cs(18,65): error CS1525: Unexpected symbol `;', expecting `)' or `,'