Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
1
//g++ 7.4.0 #include <iostream> using namespace std; int main() { string S; cin>>S; int a = (S[0] == '-'? S[1] : S[0])-'0'; int b = S.size(); int c = S[b-1]-'0'; cout<<a+c<<endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
variadic template
Breakfast Function
typename T class T
lab17feb22x4B.cpp
LIS_NEW
mur1
Income calculator
ListCPP
Abejas beta
Text Justification
Please log in to post a comment.