Submission #318701
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using sc = Scanner; class Program { static Tuple<string, double, string>[] dataSet; static void Main(string[] args) { int s1 = sc.NextInt(); int e1 = sc.NextInt(); int s2 = sc.NextInt(); int e2 = sc.NextInt(); int s3 = sc.NextInt(); int e3 = sc.NextInt(); Console.WriteLine(s1*e1/10+s2*e2/10+s3*e3/10); } } public static class Scanner { public static string NextString() { string tmp = ""; while (true) { string readData = char.ConvertFromUtf32(Console.Read()); if (readData == " " || readData == "\n") break; tmp += readData; } return tmp; } public static string[] NextStrArray() { return Console.ReadLine().Split(' '); } public static long[] NextLongArray() { string[] s = NextStrArray(); long[] a = new long[s.Length]; for (int i = 0; i < a.Length; i++) { a[i] = long.Parse(s[i]); } return a; } public static int[] NextIntArray() { string[] s = NextStrArray(); int[] a = new int[s.Length]; for (int i = 0; i < a.Length; i++) { a[i] = int.Parse(s[i]); } return a; } public static int NextInt() { string tmp = ""; while (true) { string readData = char.ConvertFromUtf32(Console.Read()); if (readData == " " || readData == "\n") break; tmp += readData; } return int.Parse(tmp); } public static double NextDouble() { string tmp = ""; while (true) { string readData = char.ConvertFromUtf32(Console.Read()); if (readData == " " || readData == "\n") break; tmp += readData; } return double.Parse(tmp); } public static long NextLong() { string tmp = ""; while (true) { string readData = char.ConvertFromUtf32(Console.Read()); if (readData == " " || readData == "\n") break; tmp += readData; } return long.Parse(tmp); } public static double[] NextDoubleArray() { string[] s = NextStrArray(); double[] a = new double[s.Length]; for (int i = 0; i < a.Length; i++) { a[i] = double.Parse(s[i]); } return a; } }
Submission Info
Submission Time | |
---|---|
Task | A - プロコン |
User | pekoong |
Language | C# (Mono 2.10.8.1) |
Score | 100 |
Code Size | 2742 Byte |
Status | AC |
Exec Time | 118 ms |
Memory | 7788 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_case-01.txt, sample_case-02.txt |
All | test-01.txt, test-02.txt, test-03.txt, test-04.txt, test-05.txt, test-06.txt, test-07.txt, test-08.txt, test-09.txt, test-10.txt, test-11.txt, test-12.txt, test-13.txt, test-14.txt, test-15.txt, test-16.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_case-01.txt | AC | 113 ms | 7720 KB |
sample_case-02.txt | AC | 112 ms | 7716 KB |
test-01.txt | AC | 112 ms | 7716 KB |
test-02.txt | AC | 112 ms | 7716 KB |
test-03.txt | AC | 112 ms | 7704 KB |
test-04.txt | AC | 111 ms | 7720 KB |
test-05.txt | AC | 112 ms | 7720 KB |
test-06.txt | AC | 113 ms | 7704 KB |
test-07.txt | AC | 112 ms | 7788 KB |
test-08.txt | AC | 118 ms | 7780 KB |
test-09.txt | AC | 118 ms | 7744 KB |
test-10.txt | AC | 117 ms | 7724 KB |
test-11.txt | AC | 112 ms | 7764 KB |
test-12.txt | AC | 116 ms | 7736 KB |
test-13.txt | AC | 115 ms | 7704 KB |
test-14.txt | AC | 113 ms | 7708 KB |
test-15.txt | AC | 113 ms | 7760 KB |
test-16.txt | AC | 117 ms | 7680 KB |