[SGU]107. 987654321 problem
2012-10-01 18:09
253 查看
Analysis
第一个想法是枚举,然后发现1到9位数中满足这样条件的只有8个……然后就很easy了
Accepted Code
第一个想法是枚举,然后发现1到9位数中满足这样条件的只有8个……然后就很easy了
Accepted Code
var n:longint; begin readln(n); if n<=8 then writeln(0) else if n=9 then writeln(8) else begin write(72); dec(n,10); while n>0 do begin dec(n); write(0); end; writeln; end; end.
相关文章推荐
- 【SGU】107. 987654321 problem 打表
- sgu 107. 987654321 problem
- SGU107. 987654321 problem 暴利找规律
- SGU107——987654321 problem
- 107. 987654321 problem
- 107. 987654321 problem
- SGU - 107 - 987654321 problem (简单数学!)
- SGU 107 987654321 problem (数论)
- SGU 107 987654321 problem【找规律】
- 找规律 SGU 107 987654321 problem
- SGU 107 987654321 problem 翻译 题解
- SGU 107 987654321 problem【找规律】
- sgu 107 987654321 problem
- SGU 107 987654321 problem(打表)
- sgu 107 (987654321 problem)
- 数论 - SGU 107 987654321 problem
- 987654321 problem - SGU 107(找规律)
- [SGU 107]987654321 problem (数论)
- SGU:107 987654321 problem
- SGU107 - 987654321 problem