結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
hiro_ei1812
|
| 提出日時 | 2019-08-14 18:30:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 56,012 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 14:32:23 |
| 合計ジャッジ時間 | 1,165 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string in;
int i,n;
int count=0;
int len;
cin>>in;
len=in.length()-1;
for(i=1;in[i]=='3';i++){
count++;
}
if(count==len){
cout<<count<<endl;
return 0;
}
cout<<"-1"<<endl;
return 0;
}
hiro_ei1812