結果
| 問題 | No.791 うし数列 |
| コンテスト | |
| ユーザー |
ttttan
|
| 提出日時 | 2019-03-03 22:04:04 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 982 ms |
| コンパイル使用メモリ | 179,080 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 08:39:59 |
| 合計ジャッジ時間 | 1,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;cin>>s;
int sum=0;
for(int i=1;i<s.size();i++){
if(s[i]=='3')sum++;
else{
sum=-1;
break;
}
}
cout<<sum<<endl;
}
ttttan