题解列表

筛选

2017: 猜价模拟

摘要:解题思路:注意事项:参考代码:n = int(input()) st = input() m = 0 for i in st:     if i == 'u':       ……

1770: [编程入门]链表之报数问题

摘要:约瑟夫环问题。用循环链表解决。(也可以直接用公式法递推)#include <bits/stdc++.h> using namespace std;   typedef int ElementTy……

1084: 用筛法求之N内的素数。

摘要:筛法求素数。筛法比我之前自己想的那种判断方法要快许多。(判断素数基本可以用筛法往上套)#include <bits/stdc++.h> using namespace std; void ju……

1389: 程序员的表白

摘要:C++处理字符串真方便#include <bits/stdc++.h> using namespace std; void print(int &n){     string border ……