結果
| 問題 | No.932 解法破綻!高橋君 |
| コンテスト | |
| ユーザー |
sorag
|
| 提出日時 | 2022-08-15 20:09:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 604 bytes |
| 記録 | |
| コンパイル時間 | 835 ms |
| コンパイル使用メモリ | 78,280 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-02 08:31:17 |
| 合計ジャッジ時間 | 1,575 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include<string>
#include<queue>
#include<math.h>
#define all(x) begin(x),end(x)
#define ll long long
#define P pair<int,int>
#define lP pait<ll,ll>
using namespace std;
int main() {
bool f=0;
string s;
cin>>s;
for (int i=0;i<s.size()-1;i++){
if(s[i]=='W' and s[i+1]=='A') f=1;
}
for (int i=0;i<s.size()-2;i++){
if(s[i]=='T' and s[i+1]=='L' and s[i+2]=='E') f=1;
if(s[i]=='M' and s[i+1]=='L' and s[i+2]=='E') f=1;
}
if(f) cout<<"Failed..."<<endl;
else cout<<"Done!"<<endl;
return 0;
}
sorag