Run ID:87274
提交时间:2024-08-08 09:45:20
#include <iostream> using namespace std; int main() { int y; cin >> y; while(y++) { int p = y; int s = 0; while(p) { s += p % 10; p /= 10; } if(s == 20) { cout << y; break; } } return 0; }