結果

問題 No.3068 CTFっぽいの
ユーザー QiToYQiToY
提出日時 2023-09-19 12:58:53
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 489 bytes
コンパイル時間 2,591 ms
コンパイル使用メモリ 205,456 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-19 12:58:58
合計ジャッジ時間 4,855 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,376 KB
evil0 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define i_nt i ## nt
#define m_ain m ## ain
#define i_f i ## f
#define f_or f ## or
#define s_tring s ## tring
#define c_har c ## har

i_nt m_ain() {
  s_tring s;
  cin >> s;
  i_nt n = s.size();
  f_or (i_nt i = 0; i + 9 <= n; i++) {
    s_tring t = s.substr(i, 9);
    set<c_har> s;
    f_or (c_har c : t) {
      s.insert(c);
    }
    i_f (s.size() == 9) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
0