結果
| 問題 | No.9012 二数の足し算 | 
| ユーザー |  | 
| 提出日時 | 2022-10-23 15:55:57 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 979 bytes | 
| コンパイル時間 | 845 ms | 
| コンパイル使用メモリ | 111,460 KB | 
| 実行使用メモリ | 26,228 KB | 
| 最終ジャッジ日時 | 2024-07-02 07:46:10 | 
| 合計ジャッジ時間 | 1,664 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 6 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Scanner
{
    string[] s;
    int i;
    char[] cs = new char[] { ' ', ',' };
    public Scanner()
    {
        s = new string[0];
        i = 0;
    }
    public string Next()
    {
        if (i < s.Length) return s[i++];
        string st = Console.ReadLine();
        while (st == "") st = Console.ReadLine();
        s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);
        if (s.Length == 0) return Next();
        i = 0;
        return s[i++];
    }
    public int NextInt()
    {
        return int.Parse(Next());
    }
    public long NextLong()
    {
        return long.Parse(Next());
    }
}
public class Hello{
    public static void Main(){
        // Your code here!
        var scanner = new Scanner();
        int a= scanner.NextInt();
        int b= scanner.NextInt();
        Hello obj = new Hello();
        Console.WriteLine("a + b = {0}", obj.Sum(a,b));
    }
    private int Sum(int a, int b){
       return a+b;
    }
}
            
            
            
        