文章列表
Tom 数 数组 简单求解
摘要:#include<stdio.h>#include<math.h>#include<stdlib.h>#include<string.h>long long sum(long long a) //如果……
1005[编程入门]温度转换
摘要:#include<stdio.h>int main(){ float f,c; scanf("%f",&f); c=(f-32)*5/9.0; printf("c=%.2f\n……
1007[编程入门]分段函数求值
摘要:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(x<1) printf("%.0f",x); e……
1008[编程入门]成绩评定
摘要:#include<stdio.h>int main(){ int x; scanf("%f",&x); if(x>=90) printf("A"); else i……
1025: [编程入门]数组插入处理
摘要:#include<stdio.h>int main(){ int a[100],i,n,j=0; for(i=0;i<9;i++) scanf("%d",&a[i]); ……
1014[编程入门]阶乘求和
摘要:```
#include
int main()
{
int n,i;
long int sum1=1,sum2=0;
scanf("%d",&n);
for(i=1;i……
1149: C语言训练-计算1~N之间所有奇数之和
摘要:```c
#include
int main()
{
int n,i,sum=0;
scanf("%d",&n);
for(i=1;i……
精品文章
String的substring()的用法总结---JAVA
摘要:substring()的作用就是截取父字符串的某一部分public String substring(int beginIndex, int endIndex)第一个参数int为开始的索引,对应Str……
寻找矩阵中所有比邻居(上下左右,对角也算,)都严格大的点
摘要:/*给一个n*m大小的矩阵,寻找矩阵中所有比邻居(上下左右,对角也算,不考虑边界就是8个咯)都严格大的点。返回一个n*m大小的矩阵,如果原矩阵中的点比邻居都严格大,则该位置为1,反之为0*/示例;pu……