結果

問題 No.932 解法破綻!高橋君
ユーザー zezero
提出日時 2019-11-29 21:56:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 395 bytes
コンパイル時間 626 ms
コンパイル使用メモリ 65,776 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-20 22:04:08
合計ジャッジ時間 1,606 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin >> s;
    for (int i=0; i<s.size()-3; i+=3){
        string  s1=s.substr(i,2);
        string  s2=s.substr(i+3,2);
        // cout << s1 << s2 << endl;
        if (s1!=s2) {
            cout << "Failed..." << endl;
            return 0;
        }
    }
    cout << "Done!" << endl;
    
    return 0;
}
0