結果
| 問題 | No.791 うし数列 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-06-03 15:58:53 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 195 bytes | 
| コンパイル時間 | 602 ms | 
| コンパイル使用メモリ | 78,692 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-21 02:19:19 | 
| 合計ジャッジ時間 | 1,517 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 14 WA * 1 | 
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
	string n;
	cin>>n;
	for(int i=0;i<n.size();i++)
		if(n[i]!=(i?'3':'1'))
			cout<<-1<<endl,exit(0);
	cout<<n.size()-1<<endl;
}
            
            
            
        