結果
問題 |
No.656 ゴルフ
|
ユーザー |
![]() |
提出日時 | 2019-09-18 18:20:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 1,344 ms |
コンパイル使用メモリ | 158,732 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-08 12:11:39 |
合計ジャッジ時間 | 1,560 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 3 WA * 3 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main(){ int s; cin >>s; int ans =0; while(s>0){ if(s%10==0){ ans+=10; } else{ ans+=s%10; } s/=10; } cout << ans <<endl; }