题解列表

筛选

题解 1118: Tom数

摘要:解题思路:使用 int的话只能对一半,使用数组来存取数才可以存下去很大的数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){   ch……

题解 1116: IP判断

摘要:解题思路:巧用scanf函数的返回值来实现循环注意事项:取反是当返回值为-1的时候取反为1,循环结束参考代码:#include<stdio.h>int main(){ int a,b,c,d,k; c……

结构体之成绩统计2

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

1097: 蛇行矩阵

摘要:解题思路:先寻找每一行的规律,然后暴力输出注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n); int a[n][n]……

堆栈的使用sgdfhjas

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "stdlib.h"#define MaxSize 100typedef int ElemType;typedef ……