Submission #2213548


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;

namespace AtCoder {
    class Program {

        static void Main() =>
            ReadInt(ReadInt()).Min().WriteLine();
    }
}

/* ***************** Following Contents are my common library ******** */

namespace AtCoder {
    static class Util {
        public static T debug<T>(this T value) {
            Console.Error.WriteLine($"debug:{value}");
            return value;
        }

        public static long ToLong(this String s) => long.Parse(s);
        public static long ToLong(this char c) => c - '0';
        public static int ToInt(this String s) => int.Parse(s);
        public static int ToInt(this char c) => c - '0';
        public static void Times(this int n, Action action) {
            for (int i = 0; i < n; i++) action();
        }
        public static void Times(this long n, Action action) {
            for (long i = 0; i < n; i++) action();
        }
        public static void Call<T>(this T t, Action<T> action) => action(t);
        public static bool In<T>(this T t, IEnumerable<T> range) =>
            range.Contains(t);
        public static void WriteLine<T>(this T t) => Console.WriteLine(t);
        public static T Call<S, T>(this S s, Func<S, T> func) => func(s);
        public static void Each<T>(this IEnumerable<T> e, Action<T> action) {
            foreach (var v in e) action(v);
        }

        public static VectorInt2 ReadVectorInt2() => 
            new VectorInt2(ReadInt(), ReadInt());

        public static string ReplaceX(this string input, string pattern, string replace) =>
            Regex.Replace(input, pattern, replace);

        public static IEnumerable<int> Range(int i, int j) => Enumerable.Range(i, j);
    }

    static class Cin {
        private static Queue<string> tokens;
        static Cin () {
            string line;
            tokens = new Queue<string> ();
            while ((line = Console.ReadLine ()) != null) {
                foreach (var token in line.Split (' ')) {
                    tokens.Enqueue (token);
                }
            }
        }

        static public int ReadInt() => int.Parse(tokens.Dequeue());
        static public IEnumerable<int> ReadInt(long n) {
            for (int i = 0; i < n; i++) yield return ReadInt();
        }
        static public long ReadLong() => long.Parse(tokens.Dequeue());
        static public IEnumerable<long> ReadLong(long n) {
            for (int i = 0; i < n; i++) yield return ReadLong();
        }
        static public string ReadString() => tokens.Dequeue();
    }

    struct VectorInt2 {
        public int X { get; set; }
        public int Y { get; set; }

        public VectorInt2(int x, int y) {
            X = x; Y = y;
        }

        static public VectorInt2 operator+ (VectorInt2 v1, VectorInt2 v2) =>
            new VectorInt2(v1.X + v2.X, v1.Y + v2.Y);
        static public VectorInt2 operator- (VectorInt2 v1, VectorInt2 v2) =>
            new VectorInt2(v1.X - v2.X, v1.Y - v2.Y);
        static public VectorInt2 operator* (VectorInt2 v1, VectorInt2 v2) =>
            new VectorInt2(v1.X * v2.X, v1.Y * v2.Y);
        static public VectorInt2 operator* (VectorInt2 v1, int i) =>
            new VectorInt2(v1.X * i, v1.Y * i);
        static public VectorInt2 operator* (int i, VectorInt2 v2) =>
            new VectorInt2(i * v2.X, i * v2.Y);
        static public VectorInt2 operator/ (VectorInt2 v1, int i) =>
            new VectorInt2(v1.X / i, v1.Y / i);
    }
}

Submission Info

Submission Time
Task B - おいしいたこ焼きの食べ方
User yuchiki
Language C# (Mono 4.6.2.0)
Score 100
Code Size 3736 Byte
Status AC
Exec Time 25 ms
Memory 13396 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 33
Set Name Test Cases
All rand0.txt, rand1.txt, rand10.txt, rand11.txt, rand12.txt, rand13.txt, rand14.txt, rand15.txt, rand16.txt, rand17.txt, rand18.txt, rand19.txt, rand2.txt, rand20.txt, rand21.txt, rand22.txt, rand23.txt, rand24.txt, rand25.txt, rand26.txt, rand27.txt, rand28.txt, rand29.txt, rand3.txt, rand4.txt, rand5.txt, rand6.txt, rand7.txt, rand8.txt, rand9.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
rand0.txt AC 25 ms 13396 KB
rand1.txt AC 23 ms 9172 KB
rand10.txt AC 23 ms 9300 KB
rand11.txt AC 23 ms 11348 KB
rand12.txt AC 23 ms 9300 KB
rand13.txt AC 23 ms 11348 KB
rand14.txt AC 23 ms 9300 KB
rand15.txt AC 23 ms 11348 KB
rand16.txt AC 23 ms 11348 KB
rand17.txt AC 23 ms 9300 KB
rand18.txt AC 23 ms 9300 KB
rand19.txt AC 23 ms 9300 KB
rand2.txt AC 23 ms 11348 KB
rand20.txt AC 23 ms 11348 KB
rand21.txt AC 23 ms 11348 KB
rand22.txt AC 23 ms 11348 KB
rand23.txt AC 23 ms 9300 KB
rand24.txt AC 24 ms 13396 KB
rand25.txt AC 23 ms 9300 KB
rand26.txt AC 23 ms 11348 KB
rand27.txt AC 24 ms 11348 KB
rand28.txt AC 23 ms 9300 KB
rand29.txt AC 23 ms 11348 KB
rand3.txt AC 23 ms 9300 KB
rand4.txt AC 23 ms 11348 KB
rand5.txt AC 24 ms 11348 KB
rand6.txt AC 23 ms 9300 KB
rand7.txt AC 23 ms 11348 KB
rand8.txt AC 24 ms 11348 KB
rand9.txt AC 23 ms 9300 KB
s1.txt AC 23 ms 9300 KB
s2.txt AC 23 ms 9300 KB
s3.txt AC 24 ms 11348 KB