Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
60021 | 杨英杰 | 算式问题 | C++ | Accepted | 1 MS | 256 KB | 431 | 2023-11-07 15:12:24 |
#include <iostream> using namespace std; int main() { int num = 0; for (int i = 10; i < 13; i++) { num = i * 809+1; if (num/100==i*8+1) { if (10+(num/10)%10<i && i*9>=100) { if (100+ ((num / 10) % 10)*10+ num % 10==9*i+1) { cout << i << endl; cout << num << endl; cout << num/100-1 << endl; cout << 9 * i + 1 << endl; cout << 9 * i << endl; } } } } }