摘要:
链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=102用二分求幂:注意要用长整形 #include int main(){ long long power(int a,int b,long long c); int n; int a,b,c; ... 阅读全文
摘要:
#include#includeint *data;int main(){ void lcm(int n); int m; int n; int i; scanf("%d",&m); while(m--) { scanf("%d",&n); data=(int *)malloc(sizeo... 阅读全文
摘要:
链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=709注意当温度为零时,异形卵是不休眠的。。因为刚开始把一个变量的初始化放错地方了,,WA了好几次,。。。不应该啊#include int heat[1005];int main(){ int k... 阅读全文
摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1279水题,个人认为先用数组保存再输出比较简单#include int main(){ int n; int tem; int ans[100]; int i; int j; scanf("%d",&n); ... 阅读全文