Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Square of maximum
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { string S; int a,b,c; int ans; cin>>S; sort(S.begin(), S.end()); reverse(S.begin(), S.end()); a = S[0]-'0'; b = S[1]-'0'; c = S[2]-'0'; ans = (a*100)+(b*10)+c; cout<<ans*ans; }
run
|
edit
|
history
|
help
0
basic caculate ii
can be zero
Expected types
Size of data type test
PATRA_Class_test
Fungsi
Find Triplets or Duplets that the sum is multiplie of three
List Add v3
map sort
segmentedSieveR