結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー takosama312takosama312
提出日時 2016-01-31 15:03:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 643 bytes
コンパイル時間 837 ms
コンパイル使用メモリ 108,700 KB
実行使用メモリ 23,920 KB
最終ジャッジ日時 2023-10-21 18:19:42
合計ジャッジ時間 1,375 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;


namespace ConsoleApplication10
{
    class Program
    {
        static void Main(string[] args)
        {
            string Val=Console.ReadLine();
            string Text = Console.ReadLine();
            int n0 = 0;
            int n1 = 0;
            for (int i=0;i<Val.Length;i++)
            {
                if (Val.Substring(i,1)==" ")
                {
                    n0 = int.Parse(Val.Substring(0, i));
                    n1 = int.Parse(Val.Substring(i + 1));
                    Console.WriteLine(n0+n1+" "+Text);
                    break;
                }
            }
       
        }
      
    }
}

0