結果

問題 No.3051 cracked
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-04-02 03:23:27
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,371 bytes
コンパイル時間 665 ms
コンパイル使用メモリ 65,392 KB
実行使用メモリ 24,528 KB
平均クエリ数 799.62
最終ジャッジ日時 2023-09-23 17:12:36
合計ジャッジ時間 10,018 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 471 ms
23,472 KB
testcase_01 AC 424 ms
23,832 KB
testcase_02 WA -
testcase_03 AC 428 ms
24,192 KB
testcase_04 WA -
testcase_05 AC 428 ms
23,700 KB
testcase_06 WA -
testcase_07 AC 452 ms
23,592 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 478 ms
24,072 KB
testcase_11 AC 456 ms
23,868 KB
testcase_12 WA -
testcase_13 AC 456 ms
23,472 KB
testcase_14 AC 455 ms
23,724 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 435 ms
24,072 KB
testcase_18 AC 428 ms
23,472 KB
testcase_19 AC 456 ms
23,424 KB
testcase_20 AC 476 ms
23,880 KB
testcase_21 AC 479 ms
23,880 KB
testcase_22 AC 428 ms
23,688 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <iostream>
#include <string>

char buf[100010];
std::string me, input;

int main() {
  auto quine = "#include <stdio.h>%c#include <iostream>%c#include <string>%c%cchar buf[100010];%cstd::string me, input;%c%cint main() {%c  auto quine = %c%s%c;%c  sprintf(buf, quine, 10, 10, 10, 10, 10, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c  me = buf;%c  for (int i = 0; i < 24; ++i) {%c    fgets(buf, sizeof(buf), stdin);%c    input += buf;%c  }%c  for (int x = 0; x < (int)me.size() && x < (int)input.size(); ++x) {%c    if (me[x] != input[x]) {%c      std::cout << x << (char)10;%c      std::cout << (char)34 << me[x] << (char)34 << (char)10;%c      std::cout << (char)34 << input[x] << (char)34 << (char)10;%c    }%c  }%c  return 0;%c}%c";
  sprintf(buf, quine, 10, 10, 10, 10, 10, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);
  me = buf;
  for (int i = 0; i < 24; ++i) {
    fgets(buf, sizeof(buf), stdin);
    input += buf;
  }
  if (input[1] != 105) for (; ; ) {}
  for (int x = 0; x < (int)me.size() && x < (int)input.size(); ++x) {
    if (me[x] != input[x]) {
      std::cout << x << (char)10;
      std::cout << (char)34 << me[x] << (char)34 << (char)10;
      std::cout << (char)34 << input[x] << (char)34 << (char)10;
    }
  }
  return 0;
}
0