摘要:
#include <string.h>#include <stdio.h>int mycmp(char*s1,char*s2);int main(){ int sum; char s1[100],s2[100]; memset(s1,'\0',100); memset(s2,'\0',100);wh 阅读全文
摘要:
#include <stdio.h>int main(){ int n,i,j,ch[15][15],v,k; while(scanf("%d",&n)!=EOF) { for(i=1;i<=n;i++) { ch[i][1]=1,ch[i][i]=1; } for(i=3;i<=n;i++) { 阅读全文
摘要:
#include <stdio.h>int main(){ int hour,minute,second; long long n;while( scanf("%lld",&n)!=EOF){ hour=0,minute=0,second=0; hour=n/3600; n%=3600; minut 阅读全文
摘要:
#include <stdio.h>int main(){ int x,n,i,j; long long sum,g;while(scanf("%d%d",&x,&n)!=EOF){ sum=0; for(i=1;i<=n;i++) { g=1; for(j=1;j<=i;j++) { g*=x; 阅读全文
摘要:
#include<stdio.h>int isprime(int i);void main(){ int n,i,j; while(scanf("%d",&n)!=EOF) { i=2; while(i>0) { if(isprime(i)==1) { j=n-i; if(isprime(j)==1 阅读全文