题解列表

筛选

题解 2780: 奇偶数判断

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

弟弟的作业

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char c=10;    int sum=0;    int a=0,b=0,d=0,t,k=0,i=0……

非直接打印的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int a){ int sum=0; for(int i=1;i<a;i++) { if(a%i==0) sum+=……

2774: 计算三角形面积

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    double a;    cin>>a>>b>>c>>d>>e>>f;  ……

并查集 + 模拟 = 恶心

#并查集+模拟总结:真的很恶心##解题思路该有的注释都有了##代码实现```javaimportjava.util.*;publicclassMain{publicstaticvoidmain(String[]args){newMain().go();}staticclassUnionFind{int

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

```c#include#includevoidtoUp(char*strs);intmain(){charstrs[81]={0};while(gets(strs)){if(!strcmp(strs,"Endoffile")){break;}toUp(strs);//小写转大写puts(strs);

字符串问题(c语言递归)

```c#include#includevoidswap(char*s1,char*s2);voidreverse(char*strs,intleft,intright);intmain(){charstrs[256]={0};gets(strs);reverse(strs,

三个数最大值

摘要:一、解题思路:三目运算符C参考代码:#include <stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); a=……