結果
| 問題 | No.9001 標準入出力の練習問題(テスト用) |
| ユーザー |
takosama312
|
| 提出日時 | 2016-01-31 15:03:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 1,000 ms |
| コード長 | 643 bytes |
| 記録 | |
| コンパイル時間 | 3,087 ms |
| コンパイル使用メモリ | 110,032 KB |
| 実行使用メモリ | 25,696 KB |
| 最終ジャッジ日時 | 2024-09-21 19:39:32 |
| 合計ジャッジ時間 | 1,229 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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;
}
}
}
}
}
takosama312