CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Sunday, September 22, 2019
প্রোগ্রামিং সমস্যা 7 - [৫২ সমস্যা বই] সংখ্যা গণনা
#include< bits/stdc++.h > using
namespace
std
;
int
main
()
{
int
tc;
string s;
scanf
(
"
%d
"
,&tc);
while
(tc--){
int
ans =
0
;
getline
(cin, s);
stringstream
line
(s);
string num;
while
(line >> num) {
ans++;
}
cout << ans << endl;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment