結果

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

ソースコード

diff #

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

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



0