結果
問題 | No.656 ゴルフ |
ユーザー |
![]() |
提出日時 | 2018-07-18 16:20:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 1,780 ms |
コンパイル使用メモリ | 166,408 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 17:12:12 |
合計ジャッジ時間 | 2,374 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ char s[9]; int ans=0; cin >> s; for(int i=0;i<9;i++){ if(s[i]-'0'==0)ans+=10; else ans+=s[i]-'0'; } cout << ans << endl; }