結果
問題 | No.3051 cracked |
ユーザー | 👑 hos.lyric |
提出日時 | 2019-04-02 03:36:33 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,371 bytes |
コンパイル時間 | 497 ms |
コンパイル使用メモリ | 65,328 KB |
実行使用メモリ | 24,444 KB |
平均クエリ数 | 799.75 |
最終ジャッジ日時 | 2023-09-23 17:13:22 |
合計ジャッジ時間 | 11,378 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 429 ms
23,556 KB |
testcase_02 | AC | 434 ms
24,024 KB |
testcase_03 | WA | - |
testcase_04 | AC | 427 ms
23,676 KB |
testcase_05 | AC | 425 ms
23,388 KB |
testcase_06 | WA | - |
testcase_07 | AC | 426 ms
23,664 KB |
testcase_08 | AC | 435 ms
23,544 KB |
testcase_09 | AC | 423 ms
23,664 KB |
testcase_10 | AC | 429 ms
24,324 KB |
testcase_11 | WA | - |
testcase_12 | AC | 429 ms
23,424 KB |
testcase_13 | AC | 426 ms
24,312 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 441 ms
24,036 KB |
testcase_18 | WA | - |
testcase_19 | AC | 437 ms
23,664 KB |
testcase_20 | WA | - |
testcase_21 | AC | 424 ms
24,048 KB |
testcase_22 | AC | 447 ms
23,676 KB |
testcase_23 | WA | - |
ソースコード
#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[0] == 'W') 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; }