結果
| 問題 |
No.932 解法破綻!高橋君
|
| コンテスト | |
| ユーザー |
yakki
|
| 提出日時 | 2019-11-29 21:44:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 2,000 ms |
| コード長 | 990 bytes |
| コンパイル時間 | 736 ms |
| コンパイル使用メモリ | 87,568 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-20 21:45:20 |
| 合計ジャッジ時間 | 1,590 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bitset>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<list>
#include<iomanip>
#include<cmath>
#include<cstring>
#include<functional>
#include<cstdio>
#include<cstdlib>
using namespace std;
#define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) repr(i, 0, n)
#define INF 2e9
#define MOD 1000000007
//#define MOD 998244353
#define LINF (long long)4e18
#define jck 3.141592
const double EPS = 1e-10;
using ll = long long;
using Pi = pair<int,int>;
using Pl = pair<ll,ll>;
int main(){
string S; cin >> S;
int n = S.size();
bool ok = true;
rep(i,n){
if(i % 3 == 0){
if(S[i] != 'A') ok = false;
}
else if(i % 3 == 1){
if(S[i] != 'C') ok = false;
}
else{
if(S[i] != ',') ok = false;
}
}
cout << (ok ? "Done!" : "Failed...") << endl;
}
yakki