delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int f,i,s,a;
while(true)
{
i=0;
s=0;
cin>>f;
while(true)
{
a=f;
a=a/pow(10,i);
if(a==0) break;
else
{
a=a%10;
s=s+a;
i++;
}
}
cout<<s<<endl;
}
}