Submission #1761319
Source Code Expand
using System;
using System.Linq;
using System.Collections.Generic;
public static class Hello{
static Scanner sc = new Scanner();
public static void Main(){
var X = sc.NextInt();
var Y = sc.NextInt();
var Z = sc.NextInt();
Console.WriteLine((int)((X - Z) / (Y + Z)));
}
}
public class Scanner{
private string line;
private string[] token;
private int cursole = 0;
public string ReadLine(){
line = Console.ReadLine();
token = line.Split(' ');
cursole = 0;
return line;
}
public string Next(){
if(token == null) ReadLine();
if(token.Length <= cursole) ReadLine();
var ret = token[cursole];
++cursole;
return ret;
}
public IEnumerable<double> NextDoubleList(){
return NextList().Select(s => Double.Parse(s));
}
public int NextInt(){return Int32.Parse(Next());}
public long NextLong(){return Int64.Parse(Next());}
public double NextDouble(){return Double.Parse(Next());}
public IEnumerable<string> NextList(){
ReadLine();
cursole = Int32.MaxValue;
return token;
}
public IEnumerable<int> NextIntList(){
return NextList().Select(s => Int32.Parse(s));
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - ISU |
| User | iwamoto |
| Language | C# (Mono 4.6.2.0) |
| Score | 200 |
| Code Size | 1359 Byte |
| Status | AC |
| Exec Time | 20 ms |
| Memory | 11220 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_0, example_1, example_2, example_3, example_4 |
| All | example_0, example_1, example_2, example_3, example_4, rand_0, rand_1, rand_10, rand_11, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8, rand_9 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_0 | AC | 19 ms | 9044 KiB |
| example_1 | AC | 20 ms | 9044 KiB |
| example_2 | AC | 20 ms | 9044 KiB |
| example_3 | AC | 19 ms | 9044 KiB |
| example_4 | AC | 20 ms | 9044 KiB |
| rand_0 | AC | 19 ms | 9044 KiB |
| rand_1 | AC | 20 ms | 11092 KiB |
| rand_10 | AC | 19 ms | 9044 KiB |
| rand_11 | AC | 19 ms | 9044 KiB |
| rand_2 | AC | 20 ms | 9044 KiB |
| rand_3 | AC | 20 ms | 11092 KiB |
| rand_4 | AC | 20 ms | 11092 KiB |
| rand_5 | AC | 20 ms | 11220 KiB |
| rand_6 | AC | 20 ms | 11092 KiB |
| rand_7 | AC | 20 ms | 9044 KiB |
| rand_8 | AC | 20 ms | 9044 KiB |
| rand_9 | AC | 20 ms | 9044 KiB |