結果

問題 No.932 解法破綻!高橋君
ユーザー totori_nyaa
提出日時 2019-11-29 21:51:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 493 bytes
コンパイル時間 1,511 ms
コンパイル使用メモリ 167,800 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-20 21:57:28
合計ジャッジ時間 2,210 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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


signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(20);
    
    string s;
    cin>>s;
    bool pos = true;
    int n = s.size();
    for(int i=0;i<n;i++){
        if(i%3==0 && s[i]!='A') pos = false;
        if(i%3==1 && s[i]!='C') pos = false;
        if(i%3==2 && s[i]!=',') pos = false;
    }
    if(pos){
        cout << "Done!\n";
    }
    else cout << "Failed...\n";

}
0