<title>2015 Blue Bridge Cup: 1. Number of Lotteries</title> 2015 Blue Bridge Cup: 1. Number of Lotteries
Some people are superstitious figures, such as the number with "4", Think and "dead" homophonic, feel unlucky.
Although these statements are nonsense, they sometimes have to cater to the needs of the public. The lottery number for a sweepstakes is 5 digits (10000-99999), which requires that no number with "4" be present, and the organizer asks you to calculate how many tickets can be issued if any two tickets are not re-numbered.
Please submit this number (an integer), do not write any superfluous content or descriptive text.
3 points to kneel, when submitted to write is 4 of the number ....
52488
int Main(void) {int ans= 0; for(int I= 1; I <= 9; i++) { for(int J= 0; J <= 9; J + +) { for(int k= 0; K < 10; k++) { for(int x= 0; x < 10; X + +) { for(int y= 0; Y < 10; y++) {if(i = = 4 | | j = 4 | | k = = 4 | | x = = 4 | | y = = 4) {Continue; } ans++; }}}}} printf ("%d\n", ans);return0;}
2015 Blue Bridge Cup: 1. Number of Lotteries