Run Code
|
API
|
Code Wall
|
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
OperatorOverload
cpp ex 3 - solution
unicodeのテスト
cccc
fb_series
H - Subprime Fibonacci Sequence
Double_wrapper gcc
c++ car racing game
int divide by int
constructing object on first use as return value of (pointer to) object-returning function