fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. // your code goes here
  6. char str[255];
  7. char str2[255];
  8. char str3[255];
  9. char str4[255];
  10. char str5[255];
  11. int num = 1;
  12. int t = 1;
  13.  
  14. printf("%d\n", t);
  15. fgets(str4, 255, stdin);
  16.  
  17.  
  18. do
  19. {
  20. // fgets(str, 255, stdin);
  21.  
  22. strcpy(str5, str);
  23. strcpy(str, str4);
  24. if (strlen(str) >= 3)
  25. if ((str[0] == '0') &&
  26. (str[1] == '0') &&
  27. (str[2] == '0')) num = 0;
  28.  
  29.  
  30. if (num == 1)
  31. {
  32. fgets(str2, 255, stdin);
  33. fgets(str3, 255, stdin);
  34. fgets(str4, 255, stdin);
  35.  
  36. if ((strlen(str) >= 5) && (strlen(str4) >= 5)) {
  37. if ((str[0] == '0') && (str[2] == ':'))
  38. printf("00:0%c:%c%c,100 -> 00:0%c:%c%c,000\n",
  39. str[1],str[3],str[4],str4[1],str4[3],str4[4]);
  40. printf("%s",str2);
  41. printf("%s",str3);
  42. if (str3[0] == '\n')
  43. { t++;
  44. printf("%d\n", t);
  45. }
  46. }
  47. // printf("\n");
  48. }
  49.  
  50. }
  51. while (num);
  52.  
  53. if ((str5[0] == '0') && (str5[2] == ':'))
  54. printf("00:0%c:%c%c,100 --> 00:0%c:%c%c,200\n",
  55. str5[1],str5[3],str5[4],str5[1],str5[3],str5[4]);
  56. printf("%s",str2);
  57. printf("%s",str3);
  58.  
  59. return 0;
  60. }
  61.  
Success #stdin #stdout 0.01s 5284KB
stdin
00:01 
We are brave. We are bright. We get our words right. And we grow while we play. Learn more every day. Words to grow. Words to grow. 

00:17 
Hello young athletes. Today we are at a football stadium. Do you like to play football? Meet 

00:25 
Teddy. He loves to play football. Let's learn some new words. This is a jersey. These are 

00:37 
football boots. 

00:40 
This 

00:41 
is a football this is a goal this is a referee now let's match some pictures 

00:54 
this is the jersey it identifies the teams these are the football boots they help teddy run faster 

01:03 
this is the football you play with it this is the goal players need to get the ball there 

01:13 
this is the referee he blows a whistle awesome how about a little test let's try where is the jersey 

01:27 
you're right this is the jersey 

01:33 
good job where are the football boots 

01:41 
correct these are the football boots well done which one is the goal 

01:53 
yes this is the goal great here is a tricky question who is the coach 

02:04 
let's go 

02:08 
here is the coach excellent job look teddy scores a goal wonderful what a great shot 

02:20 
Woods to grow, woods to grow.

000
stdout
1
00:00:01,100 -> 00:00:17,000
We are brave. We are bright. We get our words right. And we grow while we play. Learn more every day. Words to grow. Words to grow. 

2
00:00:17,100 -> 00:00:25,000
Hello young athletes. Today we are at a football stadium. Do you like to play football? Meet 

3
00:00:25,100 -> 00:00:37,000
Teddy. He loves to play football. Let's learn some new words. This is a jersey. These are 

4
00:00:37,100 -> 00:00:40,000
football boots. 

5
00:00:40,100 -> 00:00:41,000
This 

6
00:00:41,100 -> 00:00:54,000
is a football this is a goal this is a referee now let's match some pictures 

7
00:00:54,100 -> 00:01:03,000
this is the jersey it identifies the teams these are the football boots they help teddy run faster 

8
00:01:03,100 -> 00:01:13,000
this is the football you play with it this is the goal players need to get the ball there 

9
00:01:13,100 -> 00:01:27,000
this is the referee he blows a whistle awesome how about a little test let's try where is the jersey 

10
00:01:27,100 -> 00:01:33,000
you're right this is the jersey 

11
00:01:33,100 -> 00:01:41,000
good job where are the football boots 

12
00:01:41,100 -> 00:01:53,000
correct these are the football boots well done which one is the goal 

13
00:01:53,100 -> 00:02:04,000
yes this is the goal great here is a tricky question who is the coach 

14
00:02:04,100 -> 00:02:08,000
let's go 

15
00:02:08,100 -> 00:02:20,000
here is the coach excellent job look teddy scores a goal wonderful what a great shot 

16
00:02:20,100 --> 00:02:20,200
Woods to grow, woods to grow.