ABC152B - Comparing Strings
#include <algorithm> #include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { char a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b; REP(i, max(a - '0', b - '0')) { cout << min(a - '0', b - '0'); } cout << "\n"; return 0; }