結果

問題 No.932 解法破綻!高橋君
ユーザー t0uch1co
提出日時 2020-01-11 23:33:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 1,475 ms
コンパイル使用メモリ 165,708 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 09:03:31
合計ジャッジ時間 2,231 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    string n;
    cin >> n;
    bool y = true;
    if(n.at(0) != 'A') y = false;
    else{
        for(int i=2;i<n.size();i++){
            if(n.at(i) == ','){
                if(n.at(i+1) != 'A'){
                    y = false;
                    break;
                }
            }
        }
    }
    
    if(y) cout << "Done!" << endl;
    else cout << "Failed..." << endl;
    
    return 0;
}
0