結果

問題 No.1070 Missing a space
コンテスト
ユーザー seratna
提出日時 2020-06-05 21:33:29
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 510 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 620 ms
コンパイル使用メモリ 114,284 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-06-10 12:46:30
合計ジャッジ時間 1,349 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<cmath>
#include<queue>
#include<stack>
#include<list>

#define endl "\n"
using namespace std;
using ll = long long;
const ll MOD = 1e9+7;
const ll INF = 1e18;
#define REP(i, n) for(int i = 0; i < n; i++)
using Graph = vector<vector<int>>;

int main(){
    int c;
    cin>>c;
    int tmp = c;
    int ans = 0;
    while(tmp / 10 > 0){
        if(tmp % 10 != 0) ans++;
        tmp /= 10;
    }
    cout<<ans<<endl;
}
0