delete pics to save space
This commit is contained in:
13
history_source/ccf 基础篇/U1/1.6.1.cpp
Normal file
13
history_source/ccf 基础篇/U1/1.6.1.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
char sr;
|
||||
int add;
|
||||
while(true)
|
||||
{
|
||||
add=0;
|
||||
while((sr=getchar())!='\n') add+=sr-'0';
|
||||
cout<<add<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user