結果

問題 No.791 うし数列
ユーザー 259_Momone
提出日時 2019-02-22 21:21:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 253 bytes
コンパイル時間 1,190 ms
コンパイル使用メモリ 158,216 KB
実行使用メモリ 16,840 KB
最終ジャッジ日時 2024-11-25 05:01:57
合計ジャッジ時間 37,891 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 2
other AC * 6 TLE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    char c;
    cin >> c;
    if(c != '1')return 0 & puts("-1");
    long i = 1;
    cin >> c;
    while(c == '3')++i;
    if(c != -1)return 0 & puts("-1");
    cout << i << endl;
    return 0;
}
0