結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
ta60143
|
| 提出日時 | 2018-10-24 17:51:12 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 12,715 ms |
| コンパイル使用メモリ | 382,680 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-19 05:32:14 |
| 合計ジャッジ時間 | 12,110 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 18 |
ソースコード
fn main() {
let mut input = String::new();
std::io::stdin().read_line(&mut input).unwrap();
let input = input.trim().as_bytes();
let mut sum = 0;
for i in input {
if 48 <= *i && *i <= 57 {
sum += i - 48;
}
}
println!("{}", sum);
}
ta60143