結果
問題 |
No.9011 数字を全て足そう(数字だけ)
|
ユーザー |
|
提出日時 | 2020-08-30 00:24:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 1,625 ms |
コンパイル使用メモリ | 166,060 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 17:43:31 |
合計ジャッジ時間 | 2,381 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int S; cin >> S; int ans = 0; while(S>0){ ans += S%10; S /= 10; } cout << ans << endl; return 0; }