結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
sanntaroh
|
| 提出日時 | 2019-04-25 07:57:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 15 ms / 1,000 ms |
| + 760µs | |
| コード長 | 445 bytes |
| 記録 | |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 111,244 KB |
| 実行使用メモリ | 27,204 KB |
| 最終ジャッジ日時 | 2026-09-25 09:49:44 |
| 合計ジャッジ時間 | 2,808 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Collections.Generic;
namespace test20190423
{
class Program
{
static void Main(string[] args)
{
var ret = 0;
Console.ReadLine().ToCharArray().ToList().ForEach(x =>
{
if (char.IsNumber(x)) ret += int.Parse(x.ToString());
});
Console.WriteLine(ret);
Console.ReadLine();
}
}
}
sanntaroh