题解列表

筛选

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAP(y) ((y%4==0&&y%100!=0)||(y%400==0))?L:Nint main(){……

字符串编码

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

巧妙运用&#039;\0&#039;

```c#include#include#includeintmain(){intn,flag=0;chara[100],b[100];gets_s(a);intk=strlen(a);if(a[k-2]=='e'&&a[k-1]=='r'||a[k-2]=='l'&&a[k-1]=='y')a[k-

最大值和最小值的差

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

1210: 小明A+B(简单解法)

摘要:解题思路:对于小于100的数,对100取余得它本身对于大于100的数,对100取余得后两位参考代码:#include<stdio.h> int main(){ int c,i,n,a,b; sc……

结构体之成绩记录(简单易懂)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student {    char num[10];     char name[20];    int a;     i……

1200: 回文串

摘要:参考代码:#include<stdio.h> #include<string.h> int main(){ int i,j=0; char a[260],b[260]; gets(a);……

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("……

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,……