結果

問題 No.932 解法破綻!高橋君
ユーザー kikage
提出日時 2020-01-28 23:21:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 355 bytes
コンパイル時間 1,120 ms
コンパイル使用メモリ 56,232 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 16:28:11
合計ジャッジ時間 2,115 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main(){
    string str;bool done=true;
    cin >> str;
    if(str[0]!='A')done=false;
    for(int i=0;i<str.size();i++){
        if(str[i]==','){
            if(str[i+1]!='A')done=false;
        }
    }
    if(done)cout << "Done!" << endl;
    else cout << "Failed..." <<endl;
    return 0;
}
0