結果
| 問題 | 
                            No.1643 Not Substring
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-08-14 19:58:55 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 555 bytes | 
| コンパイル時間 | 1,344 ms | 
| コンパイル使用メモリ | 113,528 KB | 
| 最終ジャッジ日時 | 2025-01-23 22:12:29 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 WA * 17 | 
ソースコード
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std; // NOLINT
int main() {
    string s;
    cin >> s;
    for (auto i = 1; i <= 101; ++i) {
        string pat(i, 'a');
        if (s.find(pat) == string::npos) {
            cout << pat << endl;
            return 0;
        }
    }
    return 0;
}