JOJ ACM 2155
来源:互联网 发布:进销存软件源码 编辑:程序博客网 时间:2024/06/06 22:17
Mr. Jojer has written an article, but now he wants to make a copy of it and check out how many characters he has used.
Input and Output
You will be given an article, you should output this article again and how many characters are there.Sample Input
FerrAriS and Jojer are friends.
Sample Output
FerrAriS and Jojer are friends.32
Note: All the characters must be counted, even they can’t be displayed. And do not output extra characters.
code:
#include<stdio.h>int main(){char ch;int num=0;while(ch=getchar(),ch!=EOF){printf("%c",ch);num++;}printf("%d",num);return 0;}
- JOJ ACM 2155
- JOJ ACM 1237
- JOJ ACM 1148
- JOJ ACM 1146
- JOJ ACM 1107
- JOJ ACM 1149
- JOJ ACM 1184
- JOJ ACM 1061
- ACM JOJ 1062
- ACM JOJ 1007
- ACM JOJ 1023
- JOJ 2257
- joj 2319
- joj 2653
- JOJ 2687
- joj 2693
- joj 2443
- joj 1173
- [源代码]千万级数据分页存储过程! [转贴]
- 怎么把DBF文件导入到SQL SERVER 2000中?
- Windows CE 系统中的同步机制
- 再论NAT和穿透
- JOJ ACM 1237
- JOJ ACM 2155
- 登录验证
- JOJ ACM 1148
- JOJ ACM 1146
- JOJ ACM 1107
- 买了台MP3
- JOJ ACM 1149
- JOJ ACM 1184
- 一生中最经典的话