摘要:
class Solution { public: int reverse(int x) { long long res=0; while(x) { int t=x%10; x/=10; res=res*10+t; } if(res<INT_MIN||res>INT_MAX) return 0; re 阅读全文
摘要:
#include <iostream> #include <cstring> #include <algorithm> using namespace std; class A { public: int first,second; A(int a, int b) { first = a; seco 阅读全文