Submission #295987
Source Code Expand
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); if (a < 100) { a = 0; } else { if (a < 5000) { a = a / 100; } else { if (a < 30000) { a = 50 + a / 1000; } else { if (a < 70000) { a = 80 + (a / 1000 - 30) / 5; } else { a = 89; } } } } Console.WriteLine(String.Format("{0:D2}", a); } }
Submission Info
Submission Time | |
---|---|
Task | B - 視程の通報 |
User | taigaaa2 |
Language | C# (Mono 2.10.8.1) |
Score | 0 |
Code Size | 437 Byte |
Status | CE |
Compile Error
./Main.cs(24,60): error CS1525: Unexpected symbol `;', expecting `)' or `,'