题解列表

筛选

题解 1267: A+B Problem

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    cin>>a>>b;    cout<<……

题解 2768: 与圆相关的计算

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   double r;   scanf("%lf",&r);   pr……

字符串处理回文数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ int n; int sum=0,……

大小写转换(C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[100]; while(gets(ch)){//while多……

结构体之时间设计

摘要:解题思路:注意事项:参考代码:def leap(year):    if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:        ……

发工资咯(C语言)

摘要:解题思路:使用贪心算法在每次循环迭代中,定义整数变量 salary 用于存储每个人的工资,并初始化一个计数变量 count 用于记录需要的纸币数量。同时,定义一个整数数组 money,其中包含了货币纸……

1003密码破译

摘要:解题思路:字符+4操作/*要将"China"译成密码,译码规律是:用原来字母后面的第4个字母代替原来的字母.例如,字母"A"后面第4个字母是"E"."E"代替"A"。因此,"China"应译为"Glm……

为什么我写的这么简单1

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<algorithm>using namespace std;int a[1111],b[1111],c[1111],d……

同因查找(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ for(int i=10;i<1000;i++){ if(i%2==0&&i%3==0&&i%7==0) p……