摘要:
转眼加入蚂蚁已经三个多月,这期间主要维护一 Go 写的服务器。虽然用的时间不算长,但还是积累了一些心得体会,这里总结归纳一下,供想尝试 Go 的同学参考。 本文会依次介绍 Go 的设计理念、开发环境、语言特性。本文在谈及语言特性的时也会讨论一些 Go 的不足之处,旨在给读者提供一个全面的视角。 简介 阅读全文
摘要:
习题3-1分数统计(stat)任务一:任务一 1 #include <stdio.h> 2 3 int score[100]; 4 int main() 5 { 6 int m = 0; 7 while (scanf("%d",&m)!=EOF) 8 { 9 score[m] ++;10 }11 int max=score[0];12 for (int i=1;i<100;i++)13 {14 if (max<score[i])15 {16 max = score[... 阅读全文
摘要:
#include <stdio.h>#include <string.h>void main() { char input[20]; char tmp[90]; int count = 1; scanf("%s",input); for (int i=100;i<1000;i++) { for (int j=10;j<100;j++) { int a=i*(j%10); int b=i*(j/10); int c=i*j; sprintf(tmp,"%d%d%d%d%d",i,j,a,b,c); int ok = 1; 阅读全文