总咕值:132(2026-04-05)→
135(2026-04-19+3↑)→
129(2026-5-10−6↓)→
123(2026-7-7−3↓)→
118(2026-8-16)−5↓)→
C++// ====== 基础输入输出 ======
#include <iostream>
#include <cstdio>
#include <fstream> // 文件流:ifstream, ofstream
#include <sstream> // 字符串流:istringstream, ostringstream
// ====== 字符串与字符处理 ======
#include <string>
#include <cstring> // C 风格字符串操作:strcpy, strcmp, memset 等
#include <cctype> // 字符判断:isalpha, isdigit 等
#include <cstdlib> // 字符串转数值:atoi, atof;rand(), srand()
#include <cwchar> // 宽字符支持
#include <cwctype> // 宽字符类型检查
// ====== 动态容器 ======
#include <vector>
#include <list>
#include <deque>
#include <queue> // 优先队列、队列
#include <stack>
#include <array> // 固定大小数组(C++11)
#include <forward_list> // 单向链表(C++11)
#include <unordered_set> // 哈希集合
#include <unordered_map> // 哈希映射
// ====== 关联容器 ======
#include <set> // 有序集合
#include <map> // 有序映射
#include <bitset> // 位集合,常用于状态压缩
// ====== 算法与函数工具 ======
#include <algorithm> // sort, binary_search, unique, reverse 等
#include <numeric> // accumulate, partial_sum, gcd (C++17), lcm (C++17)
#include <functional> // 函数对象、bind、greater<T> 等
#include <iterator> // 迭代器适配器:back_inserter, istream_iterator 等
// ====== 数学与数值计算 ======
#include <cmath> // 数学函数:sqrt, sin, log, abs 等
#include <climits> // 整型极限:INT_MAX, LLONG_MIN 等
#include <cfloat> // 浮点数极限:DBL_MAX, FLT_EPSILON 等
#include <limits> // numeric_limits<T>:通用极限值查询
#include <complex> // 复数支持
#include <random> // 随机数生成器:mt19937, uniform_int_distribution
#include <ratio> // 有理数支持(编译期分数运算)
#include <cfenv> // 浮点环境控制(如异常处理)
// ====== 时间与日期 ======
#include <chrono> // 高精度时间:steady_clock, duration, time_point
#include <ctime> // C 风格时间:time(), localtime()
// ====== 内存管理 ======
#include <memory> // 智能指针:shared_ptr, unique_ptr(C++11)
#include <new> // operator new/delete, bad_alloc
// ====== 多线程支持(C++11 起)=====
#include <thread> // std::thread
#include <mutex> // 互斥锁
#include <atomic> // 原子操作
#include <future> // 异步任务:std::async, std::promise
#include <condition_variable>// 条件变量
// ====== 工具类与泛型编程 ======
#include <utility> // pair, move, forward, swap
#include <tuple> // 元组(C++11)
#include <typeinfo> // typeid, type_info
#include <type_traits> // 类型特性(SFINAE 编程常用)
#include <exception> // 异常处理:try/catch, std::exception
#include <stdexcept> // 标准异常类:out_of_range, invalid_argument
using namespace std;
// ========== Windows API 头文件 ==========
// 必须按此顺序包含以避免冲突
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> // 核心 WinAPI:窗口、消息、GDI、进程线程等
#include <winsock2.h> // Windows 套接字(网络编程)
#include <ws2tcpip.h> // IPv6、DNS 解析支持
#include <mmsystem.h> // 多媒体接口(PlaySound, timeGetTime 等)
#include <commctrl.h> // 通用控件(Toolbar, StatusBar, ListView 等)
#pragma comment(lib, "comctl32.lib")
#include <shellapi.h> // Shell 扩展功能(ShellExecute, Drag & Drop)
#include <shlobj.h> // Shell 对象和路径操作(SHGetFolderPath)
#include <shlwapi.h> // 轻量级 Shell 工具函数(Path functions)
#pragma comment(lib, "shlwapi.lib")
#include <gdiplus.h> // GDI+ 图形库(高级绘图、图像加载)
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")
#include <tlhelp32.h> // 工具帮助库(枚举进程、线程、模块)
#include <psapi.h> // 进程状态信息 API
#pragma comment(lib, "psapi.lib")
#include <dbghelp.h> // 调试帮助库(栈回溯、符号处理)
#pragma comment(lib, "dbghelp.lib")
#include <uxtheme.h> // 主题 API(Visual Styles)
#pragma comment(lib, "uxtheme.lib")
#include <dwmapi.h> // Desktop Window Manager API(Aero 效果)
#pragma comment(lib, "dwmapi.lib")
// ========== 常用宏定义 ==========
#define endl '\n'
#define pb push_back
#define ppb pop_back
#define ff first
#define ss second
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define sz(x) (int)(x).size()
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define per(i, a, b) for (int i = (a); i >= (b); --i)
// ========== 类型重命名 ==========
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
// —— 向量别名
template<typename T> using vec = vector<T>;
using vi = vector<int>;
using vll = vector<long long>;
using vb = vector<bool>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long>>;
using vvb = vector<vector<bool>>;
using vvc = vector<vector<char>>;
// —— map/set 别名
template<typename K, typename V> using umap = unordered_map<K, V>;
template<typename K, typename V> using omap = map<K, V>;
template<typename T> using uset = unordered_set<T>;
template<typename T> using oset = set<T>;
// —— 栈、队列、优先队列别名
template<typename T> using pq = priority_queue<T>; // 大根堆
template<typename T> using min_pq = priority_queue<T, vec<T>, greater<T>>; // 小根堆
template<typename T> using qu = queue<T>;
template<typename T> using st = stack<T>;
// —— 其他常用数据结构别名
template<typename T> using pq_max = priority_queue<T>;
template<typename T> using pq_min = priority_queue<T, vector<T>, greater<T>>;
// —— 函数指针/回调常用别名(适用于算法封装)
template<typename T>
using Comparator = function<bool(const T&, const T&)>;
using ProcessFunc = function<void()>;
// —— 迭代器通用别名(可选,用于泛型编程)
template<typename T>
using iter = typename vector<T>::iterator;
// —— 智能指针别名
template<typename T> using uptr = unique_ptr<T>;
template<typename T> using sptr = shared_ptr<T>;
// ========== WinAPI 常用宏定义 ==========
// Unicode 支持
#ifdef UNICODE
#ifndef _UNICODE
#define _UNICODE
#endif
#endif
// 资源管理宏
#define SAFE_DELETE(p) { if (p) { delete (p); (p) = nullptr; } }
C++#include <iostream>
#include <string>
#include <thread>
#include <chrono>
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cout << "请输入你的问题:\n";
getline(cin, s);
if(s=="A+B问题C++"){
cout<<"#include <iostream>\nint main(){\n int a,b;\n cin>>a>>b;\n cout<<a+b\n}";
}else{
cout<<"\n深度思考中.";
this_thread::sleep_for(chrono::milliseconds(1500));
cout<<".";
this_thread::sleep_for(chrono::milliseconds(1500));
cout<<".";
this_thread::sleep_for(chrono::milliseconds(1500));
cout<<"\n系统繁忙中,请稍后再试!";
}
}