結果

問題 No.932 解法破綻!高橋君
ユーザー Ichimiya
提出日時 2020-04-22 20:49:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 1,620 ms
コンパイル使用メモリ 168,424 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 03:42:47
合計ジャッジ時間 2,498 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
	string s;
	getline(cin, s);

	int len = s.size();
	int f = 0;
	for (int i = 0; i < len; i++) {
		char c = s.at(i);
		if (c == 'A' || c == 'C' || c == ',') {
			continue;
		}
		else {
			f = 1;
		}
	}

	if (f) {
		cout << "Failed..." << endl;
	}
	else {
		cout << "Done!" << endl;
	}
}
0