Topic Portal
1 /*2 violence: Simulates the degree of enumeration of each time3 Detailed Explanation:http://blog.csdn.net/enjoying_science/article/details/467590854 end of the final examination of the first question, look at the problem to find the feeling:)5 */6#include <cstdio>7#include <algorithm>8#include <cstring>9#include <vector>Ten#include <iostream> One using namespacestd; A -typedefLong Longll; - Const intMAXN = 1e3 +Ten; the Const intINF =0x3f3f3f3f; - - intMainvoid)//bestcoder Round #46 1001 YJC Tricks Time - { + //freopen ("a.in", "R", stdin); - + intN; A while(SCANF ("%d", &n) = =1) at { - for(intI=0; i<= One; ++i) - { - for(intj=0; j<= -; ++j) - { - for(intk=0; k<= -; k+=Ten) in { -ll di = (i *3600+ J * -+ k) * -;//I don't understand . toll DJ = (J * -+ k) * -; +ll t = ABS (DI-DJ); - if(T >2160000) T =4320000-T;//Inferior angle the if(T = =N) * { $printf ("%02d:%02d:%02d\n", I, J, K);Panax Notoginseng } - } the } + } A } the + return 0; -}
Violence bestcoder Round #46 1001 YJC Tricks Time