結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-02 16:56:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 170 bytes |
| コンパイル時間 | 1,439 ms |
| コンパイル使用メモリ | 158,324 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-16 03:04:12 |
| 合計ジャッジ時間 | 2,164 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string n;
cin>>n;
int e=count(n.begin(),n.end(),'3'),ans=(e==n.size()-1?e:-1);
cout<<ans<<endl;
}