結果
問題 | No.932 解法破綻!高橋君 |
ユーザー |
![]() |
提出日時 | 2019-11-30 01:33:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 630 bytes |
コンパイル時間 | 2,032 ms |
コンパイル使用メモリ | 199,652 KB |
最終ジャッジ日時 | 2025-01-08 06:24:29 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#ifndef call_from_test #include<bits/stdc++.h> using namespace std; #endif //BEGIN CUT HERE vector<string> split(string& s,char c){ int n=s.size(); vector<string> res; for(int i=0;i<n;i++){ if(s[i]==c) continue; string t; while(i<n&&s[i]!=c) t.push_back(s[i++]); res.push_back(t); } return res; } //END CUT HERE #ifndef call_from_test signed YUKI_932(){ string s; cin>>s; auto ss=split(s,','); cout<<(ss==vector<string>(ss.size(),"AC")?"Done!":"Failed...")<<endl; return 0; } /* verified 2019/11/30 https://yukicoder.me/problems/no/932 */ signed main(){ YUKI_932(); return 0; } #endif