#include #include #include

using namespace std;

int main() { int n, m; cin >> n >> m;

string n_str = to_string(n);
sort(n_str.begin(), n_str.end());
int smallest_num = stoi(n_str);

if (smallest_num == m) {
    cout << "OK" << endl;
} else {
    cout << "WRONG_ANSWER" << endl;
}

return 0;

}

One cold winter evening Alice and her older brother Bob was sitting at home near the fireplace and giving each other interesting problems to solve When it was Alices turn she told the number n to Bob

原文地址: http://www.cveoy.top/t/topic/h8PN 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录