上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: //创建一个包 ,保存在com目录下的hnqy文件夹中。 //import可找到上述包中的Demo12类。 阅读全文
posted @ 2017-07-07 19:31 小松鼠。 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-07 15:51 小松鼠。 阅读(96) 评论(0) 推荐(0) 编辑
摘要: /*构造方法的一些示例: 阅读全文
posted @ 2017-07-06 16:59 小松鼠。 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int oulur(int n){ int ret=1; for(int i=2;i*i<=n;i++) { if(n%i==0) { n/=i; ret*=i-1; } while(n%i==0) { n/=i; ret*=i; } } if(n>1) ret*= 阅读全文
posted @ 2016-04-19 18:53 小松鼠。 阅读(325) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<math.h>int arr[100];int main(){ int n,i,j,temp; while(~scanf("%d",&n)&&n) { for(i=0;i<n;i++) scanf("%d",&arr[i]); for(i=0;i< 阅读全文
posted @ 2016-03-30 19:32 小松鼠。 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.itoa 在linux下没有itoa这个函数 原型:char *itoa(int value,char *string,int radix) 用法:#include 功能:将整数value转换成字符串存入string, radix为转换时所用基数(保存到字符串中的数据的进制基数 2 8 10 1 阅读全文
posted @ 2016-03-16 20:25 小松鼠。 阅读(570) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;char s[1000];int a[1000],i,k,sum;int main(){ while(scanf("%s",s)!=EOF) { k=0 阅读全文
posted @ 2016-03-16 20:08 小松鼠。 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int n,a,b,c,i,max; while(scanf("%d%d%d%d",&n,&a,&b,&c)!=EOF) { int count=0; max=a; if(b>max) max=b; if(c>max) max=c; for( 阅读全文
posted @ 2016-03-16 16:50 小松鼠。 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=176&rec=sim 阅读全文
posted @ 2016-03-12 19:19 小松鼠。 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=90 阅读全文
posted @ 2016-03-12 14:56 小松鼠。 阅读(379) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页