Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define in() freopen("Input_tc.txt", "r", stdin)
- #define out() freopen("Input.txt", "w", stdout)
- void yes_1()
- {
- printf("%02d%c%02d\n", rand()%8,':', rand()%60);
- }
- void yes_2()
- {
- printf("%02d%c%02d\n", rand()%9,':', rand()%30);
- }
- void no()
- {
- for(;;){
- int h=rand()%24;
- int m=rand()%60;
- if(h>=9){
- printf("%02d%c%02d\n", h,':',m);
- break;
- }
- }
- }
- int main()
- {
- out();
- printf("100\n");
- cout<<endl;
- for(int i=0;i<25;i++) yes_1();
- for(int i=0;i<25;i++) yes_2();
- for(int i=0;i<50;i++) no();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment