-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflow006.cpp
More file actions
40 lines (36 loc) · 721 Bytes
/
Copy pathflow006.cpp
File metadata and controls
40 lines (36 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <iostream>
#include <vector>
using namespace std;
/*
int main()
{
cout<<"sdfsdfsf";
int t;
cin>>t;
vector <int> result;
for (int i=0; i<t; i++)
{
vector<int> arr;
string n = "\0";
cin>>n;
for (int j=0; j<n.length(); j++)
{
char* a;
a = &n[j];
int x = *a -'0';
arr.push_back(x);
}
int sum = 0;
for (int k=0; k<n.length(); k++)
{
int b = arr[k];
sum = sum + b;
}
result.push_back(sum);
arr.clear();
}
for (int u=0; u<result.size(); u++) {
cout<<result[u]<<"\n";
}
return 0;
}*/