int power(int a,int b){ int pow=1,i; for(i=0;i0){ sum+=power(a[i-1],N); i--; } if(sum==k)return 1; else return 0; } void PrintN(int m,int n){ int i; for(i=m+1;i<n;i++) if(narcissistic(i)) printf("%d\n",i); } 1. 2. 3. 4. 5. 6. 7. 8...
}publicstaticbooleanjudgeProcess(Stringstr){booleanflag2 = str.matches("t-0791[0-9]{7,8} [0-9]{11,12} [0-9]{4}.[0-9]{1,2}.[0-9]{1,2} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} [0-9]{4}.[0-9]{1,2}.[0-9]{1,2} [0-9]{1,2}:[0-9]{1,2}:[0-9]{...
复制 #include<iostream>#include<string.h>#include<stdlib.h>#include<stdio.h>#include<math.h>#include<string>#includeusing namespace std;int n,m;char a[105];intmain(){scanf("%d%d",&n,&m);for(int i=1;i<=n;i++){scanf("%s",a);int ans=1;int len=strlen(a);int t=0;for(in...