結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-05 21:20:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 138 bytes |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 64,956 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-17 12:45:27 |
| 合計ジャッジ時間 | 1,145 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
string s;
main()
{
cin>>s;
int c=0;
for(int i=1;i<s.size();i++)c+=s[i]!='0';
cout<<c<<endl;
}