結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー くれちーくれちー
提出日時 2017-07-18 21:29:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 2,012 bytes
コンパイル時間 2,544 ms
コンパイル使用メモリ 108,032 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-04-17 02:00:54
合計ジャッジ時間 1,789 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
17,792 KB
testcase_01 AC 24 ms
17,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Convert;
using static System.Math;
using static Extentions;

class IO
{
    int idx;
    string[] input;

    public IO(TextReader reader)
    {
        input = reader.ReadToEnd().Split(new[] { " ", Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
    }

    public string S => input[idx++];
    public char C => char.Parse(input[idx++]);
    public int I => int.Parse(input[idx++]);
    public long L => long.Parse(input[idx++]);
    public double F => double.Parse(input[idx++]);
    public decimal D => decimal.Parse(input[idx++]);
    public BigInteger B => BigInteger.Parse(input[idx++]);

    public string[] Ss(int n) => input.Skip((idx += n) - n).Take(n).ToArray();
    public char[] Cs(int n) => input.Skip((idx += n) - n).Take(n).Select(char.Parse).ToArray();
    public int[] Is(int n) => input.Skip((idx += n) - n).Take(n).Select(int.Parse).ToArray();
    public long[] Ls(int n) => input.Skip((idx += n) - n).Take(n).Select(long.Parse).ToArray();
    public double[] Fs(int n) => input.Skip((idx += n) - n).Take(n).Select(double.Parse).ToArray();
    public decimal[] Ds(int n) => input.Skip((idx += n) - n).Take(n).Select(decimal.Parse).ToArray();
    public BigInteger[] Bs(int n) => input.Skip((idx += n) - n).Take(n).Select(BigInteger.Parse).ToArray();

    public void Write<T>(params T[] xs) => Console.WriteLine(string.Join(" ", xs));
    public void Write(params object[] xs) => Console.WriteLine(string.Join(" ", xs));
}

static class Extentions
{
}

class Program
{
    public static void Main()
    {
#if !DEBUG
        Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
#endif
        Solve(new IO(Console.In));
        Console.Out.Flush();
    }

    public static void Solve(IO io)
    {
        var a = io.I;
        var b = io.I;
        var s = io.S;

        io.Write(a + b, s);
    }
}
0