結果
問題 |
No.932 解法破綻!高橋君
|
ユーザー |
|
提出日時 | 2020-06-05 22:54:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 342 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 1,847 ms |
コンパイル使用メモリ | 174,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 17:11:20 |
合計ジャッジ時間 | 3,772 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ string s; cin>>s; s+=","; set<string> st; while(!s.empty()){ int t=s.find(","); string w=s.substr(0,t); st.insert(w); s.erase(0,t+1); } if(st.size()==1&&st.count("AC")==1) cout << "Done!" << endl; else cout << "Failed..." << endl; }