結果

問題 No.8051 cracked
コンテスト
ユーザー algon_320
提出日時 2019-04-01 23:40:43
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 965 ms / 1,024 ms
コード長 851 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,425 ms
コンパイル使用メモリ 183,864 KB
実行使用メモリ 30,212 KB
平均クエリ数 0.25
最終ジャッジ日時 2026-04-03 11:32:28
合計ジャッジ時間 26,622 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
using namespace std;char s[]="#include<bits/stdc++.h>$using namespace std;char s[]=@;int main() {string code;int idx = 0;while (s[idx] != 0) {if (s[idx] == 36) {code += 10;} else if (s[idx] == 64) {code += 34;code += s;code += 34;} else {code += s[idx];}idx++;}idx = 0;while (1) {char ch = getc(stdin);if (code[idx] != ch) {cout << idx << endl;cout << (char)34 << code[idx] << (char)34 << endl;cout << (char)34 << ch << (char)34 << endl;return 0;}idx++;}}";int main() {string code;int idx = 0;while (s[idx] != 0) {if (s[idx] == 36) {code += 10;} else if (s[idx] == 64) {code += 34;code += s;code += 34;} else {code += s[idx];}idx++;}idx = 0;while (1) {char ch = getc(stdin);if (code[idx] != ch) {cout << idx << endl;cout << (char)34 << code[idx] << (char)34 << endl;cout << (char)34 << ch << (char)34 << endl;return 0;}idx++;}}
0