結果
問題 |
No.1643 Not Substring
|
ユーザー |
|
提出日時 | 2021-09-05 07:15:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 2,095 ms |
コンパイル使用メモリ | 187,920 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 17:49:53 |
合計ジャッジ時間 | 2,597 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 17 |
ソースコード
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; string ans = "a"; int s = S.find(ans); while(s != -1){ ans += "a"; s = S.find(ans); } cout << ans << endl; }