题解列表

筛选

1049: [编程入门]结构体之时间设计

摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码:       首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法……

整型与布尔型的转换

摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#includausing nanespace sbd;ibt maia(){    ibt a;    cia>>b;    caut<<(ao……

很好理解,注意变量

摘要:解题思路:注意事项:%.0lf,会四舍五入参考代码:#include<stdio.h>int main(){    int y;    double m,r;    scanf("%lf%lf%d",……

财务管理求月平均值

摘要:解题思路:注意事项:参考代码:sum=0for i in range(12):    a=float(input())    sum+=aprint(&#39;${:.2f}&#39;.format(……

编写题解 2764: 带余除法

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