2018 Toutiao Hubei Province Competition【H】

[Title link] https://www.nowcoder.com/acm/contest/104/G

 

Question H of the live game, emmm...C++ contestants expressed their sadness. High-precision pressing of the four-position board WA four rounds.

The correct solution is divide and conquer.

emmmm.. not.

Written in py. QAQQ Omg I really can't. py water has passed.

 

Just a few lines when you look at py. .

For the correct solution, please see the standard schedule of the little brother of gs. Hey.

 

1 n = ((int)input())
2 for n range i to n
3     n *= (int)input()
4 print(n)
View Code

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324934219&siteId=291194637