結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-06 23:57:26 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 295 bytes |
| コンパイル時間 | 2,086 ms |
| コンパイル使用メモリ | 109,588 KB |
| 実行使用メモリ | 26,912 KB |
| 最終ジャッジ日時 | 2024-10-08 00:47:47 |
| 合計ジャッジ時間 | 3,745 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
var input = Console.ReadLine();
Console.WriteLine(input.Where(i => Char.IsNumber(i)).Sum(i => int.Parse(i.ToString())));
}
}
}