結果
問題 |
No.1070 Missing a space
|
ユーザー |
![]() |
提出日時 | 2020-06-05 21:33:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 510 bytes |
コンパイル時間 | 907 ms |
コンパイル使用メモリ | 96,512 KB |
最終ジャッジ日時 | 2025-01-10 22:12:58 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 6 |
ソースコード
#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; }