結果
問題 | No.656 ゴルフ |
ユーザー | Crowea |
提出日時 | 2019-01-21 13:29:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 798 ms |
コンパイル使用メモリ | 65,064 KB |
実行使用メモリ | 22,760 KB |
最終ジャッジ日時 | 2023-10-13 17:15:43 |
合計ジャッジ時間 | 2,087 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
20,652 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 53 ms
20,704 KB |
testcase_05 | AC | 54 ms
20,788 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine(); int score = 0; for (int i=0; i< input.Length; i++) { if (input[i] == 0) score += 10; else score += int.Parse(input[i].ToString()); } Console.WriteLine(score); } }