結果
問題 | No.1249 小学校1年生の夢 |
ユーザー |
![]() |
提出日時 | 2020-11-01 13:18:28 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 612 bytes |
コンパイル時間 | 844 ms |
コンパイル使用メモリ | 111,352 KB |
実行使用メモリ | 25,956 KB |
最終ジャッジ日時 | 2024-07-22 05:44:28 |
合計ジャッジ時間 | 2,589 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace y1249 { class Program { static void Main(string[] args) { string[] numStr = Console.ReadLine().Split(' '); int a = int.Parse(numStr[0]); int b = int.Parse(numStr[1]); int c = int.Parse(numStr[2]); int ans = a + b; string result = "Incorrect"; if(ans == c) { result = "Correct"; } Console.WriteLine(result); } } }