結果
| 問題 |
No.932 解法破綻!高橋君
|
| コンテスト | |
| ユーザー |
t0uch1co
|
| 提出日時 | 2020-01-11 23:32:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 452 bytes |
| コンパイル時間 | 1,317 ms |
| コンパイル使用メモリ | 165,952 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 08:59:53 |
| 合計ジャッジ時間 | 2,259 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string n;
cin >> n;
bool y = true;
if(n.at(0) != 'A') y = false;
else{
for(int i=2;i<n.size();i++){
if(n.at(i) == ','){
if(n.at(i+1) != 'A'){
y = false;
break;
}
}
}
}
if(y) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
t0uch1co