結果
問題 | No.656 ゴルフ |
ユーザー |
|
提出日時 | 2019-08-06 15:39:26 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 11,195 ms |
コンパイル使用メモリ | 219,168 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 13:58:50 |
合計ジャッジ時間 | 10,837 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
package main import ( "fmt" "strconv" ) func main() { var s string var a, t int fmt.Scan(&s) for i := 0; i < len(s); i++ { a, _ = strconv.Atoi(string(s[i])) if a == 0 { t += 10 } else { t += a } } fmt.Println(t) }