题解列表
编写题解 1248: 简单的事情
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;unsigned long long int jiecheng(int n){ if(n……
编写题解 1249: 简单编码
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main() { string s; wh……
题解 大小写转换 简单易懂
摘要:解题思路:
1.利用while函数输入字符串s
2.当输入的字符串为 End of file 跳出循环
3.用islower函数用于判断字符是否为小写字母(a-z)
4.int toupper……
1220题解 C++ 序列有序 新思路
摘要:解题思路:
1.把数直接插入原序列的末尾
2.然后用sort函数对新序列进行排序后再输出
注意事项:
利用sort函数要加algorithm的头文件
参考代码:
```cpp
#incl……
编写题解 1468: 蓝桥杯基础练习VIP-报时助手
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; string……
编写题解 1504: 蓝桥杯算法提高VIP-勾股数
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int a=1;a<=1000;a++) { ……
1609: 蓝桥杯算法训练VIP-黑色星期五
摘要:def isyun(n):
if n%100==0:
if n%400==0:
return 1
else:
1632: 蓝桥杯算法训练VIP-数对
摘要:n=int(input())
for i in range(1,n+1):
if n%i==0:
print(f'{i} * {n//i} = {n}')……