window.cnblogsConfig = {//可以放多张照片,应该是在每一个博文上面的图片,如果是多张的话,那么就随机换的。 homeTopImg: [ "https://cdn.luogu.com.cn/upload/image_hosting/clcd8ydf.png", "https://cdn.luogu.com.cn/upload/image_hosting/clcd8ydf.png" ], }

自产生算法

自产生算法

#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); string s = R"(#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); string s = R"()", s1 = R"(; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; return 0; })"; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; return 0; }

不要运行:

#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; string file; void f() { system(("g++ -Wl,--stack=0x10000000 -std=c++14 \"" + file + "\" -o \"" + file + "\".exe").c_str()); system(("\"" + file + "\".exe").c_str()); return; } signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); srand(time(0)); file = "quine" + to_string(rand()) + ".cpp"; freopen(file.c_str(), "w", stdout); atexit(f); string s = R"(#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; string file; void f() { system(("g++ -Wl,--stack=0x10000000 -std=c++14 \"" + file + "\" -o \"" + file + "\".exe").c_str()); system(("\"" + file + "\".exe").c_str()); return; } signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); srand(time(0)); file = "quine" + to_string(rand()) + ".cpp"; freopen(file.c_str(), "w", stdout); atexit(f); string s = R"()", s1 = R"(; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; fclose(stdout); return 0; })"; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; fclose(stdout); return 0; }

不要运行 puls:

#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; string file; void f() { system(("g++ -Wl,--stack=0x10000000 -std=c++14 \"" + file + "\" -o \"" + file + "\".exe").c_str()); system(("\"" + file + "\".exe").c_str()); return; } signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); srand(time(0)); file = "quine" + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + ".cpp"; freopen(file.c_str(), "w", stdout); atexit(f); string s = R"(#include<bits/stdc++.h> typedef int int32; #define int long long using namespace std; string file; void f() { system(("g++ -Wl,--stack=0x10000000 -std=c++14 \"" + file + "\" -o \"" + file + "\".exe").c_str()); system(("\"" + file + "\".exe").c_str()); return; } signed main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); srand(time(0)); file = "quine" + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + to_string(rand()) + ".cpp"; freopen(file.c_str(), "w", stdout); atexit(f); string s = R"()", s1 = R"(; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; fclose(stdout); return 0; })"; s = s + s + ")\", s1 = R\"(" + s1 + ")\"" + s1; cout << s; fclose(stdout); return 0; }

__EOF__

本文作者wbw121124
本文链接https://www.cnblogs.com/wbw121124/p/18709681.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   wbw121124  阅读(14)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示