結果

問題 No.3068 CTFっぽいの
ユーザー maimai
提出日時 2020-03-30 00:27:42
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 518 bytes
コンパイル時間 2,632 ms
コンパイル使用メモリ 206,744 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-30 20:08:23
合計ジャッジ時間 4,916 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

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

#define i_(x) i##x
#define r_(x) r##x
#define f_(x) f##x
#define i_nt i_(nt)
#define i_f i_(f)
#define f_or f_(or)
#define r_eturn r_(eturn)


i_nt main() {
  string s;
  cin >> s;
  i_nt t = 0;
  i_nt ok = true;
  map<i_nt, i_nt> mm;
  f_or (i_nt i = 0; i+8 < s.size(); ++i) {
    set<i_nt> bb;
    f_or (i_nt j = 0; j < 9; ++j) {
      bb.insert(s[i+j]);
    }
    i_f (bb.size() == 9) {
      cout << "Yes" << endl;
      r_eturn 0;
    }
  }
  cout << "No" << endl;
}
0