上一页 1 ··· 9 10 11 12 13
摘要: 重点找递推公式,推导层数 // 8'39" #include <iostream> #include <cmath> using namespace std; int main() { int n; cin >> n; char c; cin >> c; int cur = 1; for(int i 阅读全文
posted @ 2024-07-31 14:13 Frodnx 阅读(19) 评论(0) 推荐(0)
摘要: 直接输出的题还是python快 print("Hello World!") // 30" #include <iostream> using namespace std; int main() { cout << "Hello World!"; return 0; } 阅读全文
posted @ 2024-07-31 14:11 Frodnx 阅读(25) 评论(0) 推荐(0)
摘要: string 容器 // string容器 // 基本操作 string str(4,'c'); // 使用 4 个字符 c 初始化 str2.assign(str1, 2, 1); // 将 str1 从 下标2 开始,将 1 个字符赋值给字符串 str2 = str1.substr(2, 1) 阅读全文
posted @ 2024-07-20 03:14 Frodnx 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13