Submission #1315927


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;

namespace AIZU
{
	class Program
	{
		#region Reserve
		static int cin() { return cin(-1); }
		static int cin(int D)
		{
			string s = Console.ReadLine();
			if (string.IsNullOrEmpty(s))
				return D;
			return int.Parse(s);
		}
		static int[] cins(char spliter)
		{
			string s = Console.ReadLine();
			if (string.IsNullOrEmpty(s))
				return new int[] { };
			string[] ss = s.Split(spliter);
			int[] Res = new int[ss.Length];
			int g;
			for (int i = 0; i < ss.Length; i++) {
				if (int.TryParse(ss[i], out g))
					Res[i] = g;
			}
			return Res;
		}
		static int[] cins() { return cins(' '); }
		static long[] lins(char spliter)
		{
			string s = Console.ReadLine();
			if (string.IsNullOrEmpty(s))
				return new long[] { };
			string[] ss = s.Split(spliter);
			long[] Res = new long[ss.Length];
			long g;
			for (int i = 0; i < ss.Length; i++) {
				if (long.TryParse(ss[i], out g))
					Res[i] = g;
			}
			return Res;
		}
		static long[] lins() { return lins(' '); }
		static void print(object j) { Console.WriteLine(j.ToString()); }
		static void print(string j) { Console.WriteLine(j); }
		#endregion
		static void Main(string[] args)
		{
			int I = cin();
			print(--I);
		}
	}
}

Submission Info

Submission Time
Task A - 植木算
User sa8
Language C# (Mono 4.6.2.0)
Score 100
Code Size 1318 Byte
Status AC
Exec Time 21 ms
Memory 13140 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 17
Set Name Test Cases
Sample subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt
All subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt
Case Name Status Exec Time Memory
subtask0_sample01.txt AC 21 ms 9044 KB
subtask0_sample02.txt AC 20 ms 11092 KB
subtask0_sample03.txt AC 20 ms 9044 KB
subtask1_01.txt AC 20 ms 11092 KB
subtask1_02.txt AC 20 ms 9044 KB
subtask1_03.txt AC 20 ms 11092 KB
subtask1_04.txt AC 20 ms 9044 KB
subtask1_05.txt AC 20 ms 11092 KB
subtask1_06.txt AC 20 ms 11092 KB
subtask1_07.txt AC 20 ms 9044 KB
subtask1_08.txt AC 20 ms 9044 KB
subtask1_09.txt AC 20 ms 11092 KB
subtask1_10.txt AC 20 ms 9044 KB
subtask1_11.txt AC 20 ms 11092 KB
subtask1_12.txt AC 21 ms 13140 KB
subtask1_13.txt AC 20 ms 9044 KB
subtask1_14.txt AC 20 ms 9044 KB