摘要: pyinstaller打包exe执行文件错误,python使用installer生成exe文件运行错误,并在执行文件时提示: Unable to load the file system codec Can’t find module encodings 那么,很有可能是你的版本3.7不能很好的兼容 阅读全文
posted @ 2018-07-18 17:10 崔杯杯 阅读(2749) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main() { int t,s,n,m; scanf("%d",&s); while(s--) { scanf("%d %d",&n,&m); t=0; for(;n>0;) { n=n/m; t+=n; } printf("%d\n",t); } } 阅读全文
posted @ 2018-05-21 10:45 崔杯杯 阅读(1903) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main() { int n,i,j,a,b,t,k; scanf("%d",&n); for(k=0;k<n;k++) { scanf("%d %d",&i,&j); a=i,b=j; if(b%a==0) printf("%d %d\n",a,i*j/ 阅读全文
posted @ 2018-04-19 21:19 崔杯杯 阅读(2012) 评论(0) 推荐(1)
摘要: #include <stdio.h>int main() { int n,x,y,z; while(scanf("%d",&n)&&n!=0) { x=n/100; y=n%100/10; z=n%100%10; if(x*x*x+y*y*y+z*z*z==n) printf("Yes\n"); e 阅读全文
posted @ 2018-04-19 20:01 崔杯杯 阅读(1458) 评论(0) 推荐(1)
摘要: #include <stdio.h>int main() { int n,a,b,c,i=1,j; scanf("%d %d %d",&a,&b,&c); for(n=10;n<101;n++) { if((n%3==a)&&(n%5==b)&&(n%7==c)) { printf("%d",n); 阅读全文
posted @ 2018-04-19 19:19 崔杯杯 阅读(7367) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main() { int a[100][100]; int m,n,M,N,x,y,i,j,t=0; scanf("%d",&M); N=M;for(x=0,y=M-1;N>0;N=N-2,x++,y--) { for(m=x,n=y,i=0;i<N;i+ 阅读全文
posted @ 2018-04-16 21:03 崔杯杯 阅读(1208) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main() { int i,j,k,t; int c[10]; scanf("%d %d %d %d %d",&c[0],&c[1],&c[2],&c[3],&c[4]); for(i=0,k=1;i<4;i++,k++) { for(j=k;j<5;j 阅读全文
posted @ 2018-04-12 09:04 崔杯杯 阅读(1611) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <string.h>int main() { int i=0; char s1[20],s2[20]; while(scanf("%s %s",s1,s2)!=EOF) { i++; if(strcmp(s1,"A#")==0) printf(" 阅读全文
posted @ 2018-04-10 17:03 崔杯杯 阅读(143) 评论(0) 推荐(0)