結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー |
|
提出日時 | 2016-10-20 13:59:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 916 ms |
コンパイル使用メモリ | 103,552 KB |
実行使用メモリ | 17,408 KB |
最終ジャッジ日時 | 2024-05-02 20:29:36 |
合計ジャッジ時間 | 1,564 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Program { static void Main() { string AB = Console.ReadLine(); string A_ = ""; int i = 0; while(AB.Substring(i, i + 1) != " ") { A_ = A_ + AB.Substring(i, 1); i++; } int A = Convert.ToInt32(A_); int B = Convert.ToInt32(AB.Substring(i + 1)); string S = Console.ReadLine(); int N = A + B; Console.WriteLine(N.ToString() + " " + S); } }