結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2021-08-13 22:05:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 237 bytes |
| コンパイル時間 | 886 ms |
| コンパイル使用メモリ | 65,000 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-03 21:48:12 |
| 合計ジャッジ時間 | 1,465 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 17 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
string a;
for (int i = 1; ; i++) {
a += "a";
if (s.find(a) == std::string::npos) {
cout << a << endl;
break;
}
}
return 0;
}
startcpp