結果
| 問題 | No.932 解法破綻!高橋君 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-11-29 21:44:10 | 
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 8 ms / 2,000 ms | 
| コード長 | 431 bytes | 
| コンパイル時間 | 1,244 ms | 
| コンパイル使用メモリ | 137,708 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-30 15:40:22 | 
| 合計ジャッジ時間 | 2,236 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
#include <iostream>
#include <vector>
#include <utility>
#include <map>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
int main() {
    string s;
    cin >> s;
    int n = s.size();
    bool ans = true;
    for (int i=0; i<n; i++) {
        if (s[i] != 'A' && s[i] !='C' && s[i]!=',') {
            ans = false;
            break;
        }
    }
    cout << (ans? "Done!" : "Failed...") << endl;
}
            
            
            
        