题解列表

筛选

整数的个数

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

感谢支持,谢谢你们的支持

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

三目运算符闰年判断

摘要:代码:#include <stdio.h>#define LEAP_YEAR(y) (y%400 ==0 ? printf("L") : ((y%4 ==0 && y%100 != 0) ? prin……

人口增长问题

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

2814: 正常血压(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n][2]; int i,j; for(i=0;i<n……

回文日期(c++)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){     char arr[8];     scanf("……

1118: Tom数,简洁易懂

##1118:Tom数,简洁易懂```cpp#includeusingnamespacestd;intmain(){longlonga;//注意,这里要用longlongwhile(cin>>a){inty=0;while(a!=0){y+=a%10;a/=10;}cout

奖学金(利用结构体和sort)

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm>//利用sort排序  using namespace std; struct St……

1000: [竞赛入门]简单的a+b (python代码)

whileTrue:#whileTrue语句中一定要有结束该循环的break语句,否则会一直循环下去的try:#Python中,用tryexcept语句块捕获并处理异常a,b=map(int,input().strip().split())ifa>2**10orb>2**10:breakprint(a