题解列表
1066:自定义函数-x的n次幂/n!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>double main(){ double fac(int n); double mypow(float x,int n);……
c++使用bool变量的简便方法
摘要:#include <iostream>using namespace std;int main() { int a; cin >> a; bool con3 = (a % 3 ……
编写题解 3030: 全排列
摘要:非常简单的深搜:```cpp#include#pragma GCC optimize("O2")#pragma G++ optimize("O2")//#pragma GCC ……
编写题解 3107: 最短路径(shopth)
摘要:```cpp//有点意思#include #include using namespace std;const int INF=0x3f3f3f3f;struct Node{……
一行代码解决(燃尽了)
摘要:解题思路: 通过 lambda 函数处理输入字符串:先用海象运算符分别统计字母 (a)、数字 (b)、空格 (c) 的数量,其他字符数由总长度减去 a、b、c 之和得到;再用 f-stri……