博客
关于我
B1021 个位数统计 (15 分)
阅读量:325 次
发布时间:2019-03-04

本文共 305 字,大约阅读时间需要 1 分钟。

在这里插入图片描述

#include 
#include
#include
using namespace std;int main(){ char str[1010]; //gets(str); //PAT不能使用gets fgets(str,1010,stdin); int i= 0; while(str[i]!='\n') i++; str[i]='\0'; int len = strlen(str); int count[10] = { 0}; for(int i=0;i

转载地址:http://azph.baihongyu.com/

你可能感兴趣的文章