結果
問題 | No.289 数字を全て足そう |
ユーザー |
|
提出日時 | 2019-04-14 00:24:32 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 125 bytes |
コンパイル時間 | 3,162 ms |
コンパイル使用メモリ | 66,736 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 23:06:23 |
合計ジャッジ時間 | 4,070 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils, strutils let s = stdin.readLine var ans = 0 for c in s: if c.isDigit: ans.inc(parseInt($c)) echo ans