結果
問題 |
No.289 数字を全て足そう
|
ユーザー |
|
提出日時 | 2017-03-01 23:14:29 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 7 ms / 1,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 1,567 ms |
コンパイル使用メモリ | 137,620 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 07:08:10 |
合計ジャッジ時間 | 2,570 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import std.stdio; import std.string, std.conv, std.array, std.algorithm; import std.uni; void main(){ auto S = readln.chomp; int ans = 0; foreach(c;S){ if(c.to!string.isNumeric){ ans += c.to!string.to!int; } } ans.writeln; }