結果
問題 | No.656 ゴルフ |
ユーザー | funakoshi |
提出日時 | 2019-06-28 17:46:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 677 bytes |
コンパイル時間 | 2,076 ms |
コンパイル使用メモリ | 101,416 KB |
実行使用メモリ | 22,912 KB |
最終ジャッジ日時 | 2023-09-14 21:27:36 |
合計ジャッジ時間 | 3,448 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 54 ms
22,912 KB |
testcase_01 | AC | 55 ms
22,692 KB |
testcase_02 | AC | 54 ms
20,752 KB |
testcase_03 | AC | 52 ms
22,600 KB |
testcase_04 | AC | 55 ms
22,696 KB |
testcase_05 | AC | 55 ms
22,804 KB |
testcase_06 | AC | 55 ms
20,728 KB |
testcase_07 | AC | 55 ms
22,844 KB |
testcase_08 | AC | 54 ms
20,624 KB |
testcase_09 | AC | 54 ms
20,772 KB |
コンパイルメッセージ
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 yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int num = 0; for(int i=0;i<input.Length;i++) { string temp = input.Substring(i, 1); if(temp=="0") { num = num + 10; } else { num = num + int.Parse(temp); } } Console.WriteLine(num); } } }