fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char str[255];
  6. int num = 1;
  7. int t = 1;
  8.  
  9. printf("%d\n", t);
  10.  
  11. do
  12. {
  13. fgets(str, 255, stdin);
  14. if (strlen(str) >= 4)
  15. if ((str[0] == '0') &&
  16. (str[1] == '0') &&
  17. (str[2] == '0') &&
  18. (str[3] == '0')) num = 0;
  19.  
  20. if (num == 1)
  21. {printf("%s",str);
  22. if (str[0] == '\n')
  23. { t++;
  24. printf("%d\n", t);
  25. }
  26. // printf("\n");
  27. }
  28.  
  29. }
  30. while (num);
  31.  
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0.01s 5296KB
stdin
00:08 
Hello, this is the Rest and Relax program. 

00:17 
Relax your entire body. 

00:24 
Entire body. 

00:31 
Relax your mind. 

00:33 
Relax your mind. 

00:45 
What season do you like the most? 

00:54 
Season. 

00:58 
Maybe it's hot summer. 

01:03 
Hot summer. 

01:05 
God bless. 

01:08 
Or perhaps frosty winter. 

01:11 
Морозная зима. 

01:14 
Frosty winter. 

01:15 
Frosty winter. 

01:17 
Every season is beautiful. 

01:20 
Любое время года прекрасно. 

01:24 
Beautiful, beautiful. 

01:27 
Let's recall our previous autumn. 

01:32 
Changeable and wonderful. 

01:34 
Вспомним прошлую осень. 

01:37 
Изменчивую и прекрасную. 

01:41 
Changeable and wonderful. 

01:42 
and 

01:48 
Changeable autumn. 

01:59 
Summer has come to an end. 

02:02 
Вот и закончилось лето. 

02:06 
Has come to an end. 

02:11 
The heat has faded, but the cold hasn't come yet. 

02:16 
Жара уже спала, но холода еще не наступили. 

02:23 
Hasn't come yet. 

02:26 
The ladybird has settled comfortably on a leaf. 

02:32 
Божья коровка удобно устроилась на листочке. 

02:37 
Settled comfortably on a leaf. 

02:46 
The leaves have become yellow. 

02:51 
Листва пожелтела. 

02:54 
Leaves have become yellow. 

02:56 
Come yellow. 

03:05 
This bright yellow color brings us joy. 

03:08 
Этот яркий желтый цвет несет нам радость. 

03:14 
Bright yellow color. 

03:15 
Yellow and color. 

03:19 
It inspires optimism. 

03:25 
Inspires optimism. 

03:28 
It gives hope for the better. 

03:33 
Hope for the better. 

03:45 
But one can feel a slight melancholy 

03:48 
for summer's end. 

03:55 
For summer's end. 

03:58 
Autumn is the time for reflection. 

04:03 
Time for reflection. 

04:08 
We've managed to do a lot. 

04:14 
To do a lot. 

04:15 
We do. 

04:18 
We've achieved great successes. 

04:20 
Мы добились больших успехов. 

04:25 
Achieved great successes. 

04:34 
The last autumn roses are still blooming. 

04:39 
Еще цветут последние осенние розы. 

04:44 
Last autumn roses. 

04:45 
Last autumn. 

04:53 
In addition to buds, roses also have thorns. 

04:57 
Но кроме бутонов, у роз есть и шипы. 

05:03 
Also have thorns. 

05:05 
So we'll have... 

05:09 
It's so similar to our life. 

05:12 
Как похоже на нашу жизнь. 

05:16 
Our life. 

05:18 
Hardships are next to joy. 

05:21 
Неприятности соседствуют с радостями. 

05:26 
Next to joy. 

05:27 
to joy. 

05:31 
But we are able to overcome everything. 

05:35 
Мы все преодолеем. 

05:37 
Overcome everything. 

05:38 
Overcom- 

05:42 
We are strong and self-confident. 

05:45 
Мы сильны и уверены в себе. 

05:49 
Strong and self-confident. 

05:57 
The wind has begun to blow. 

06:00 
Поднимается ветер. 

06:03 
Begun to blow. 

06:06 
The weather will become worse soon. 

06:10 
Скоро погода испортится. 

06:13 
Become worse. 

06:16 
Autumn will show its other side. 

06:19 
Осень покажет себя с другой стороны. 

06:25 
Its other side. 

06:27 
A lovely day has changed to bad weather. 

06:45 
Погожий денек сменился ненастьем. 

06:51 
Lovely day has changed. 

06:55 
There is no better day. 

06:57 
Nobody in the street. 

06:59 
На улице ни души. 

07:01 
Nobody. 

07:09 
It's drizzling rain. 

07:11 
Идет моросящий дождь. 

07:15 
Drizzling rain. 

07:23 
The rain has become heavier. 

07:25 
Дождь льет все сильнее. 

07:29 
Become heavier. 

07:32 
The rain turns into a downpour. 

07:35 
Дождь превращается в ливень. 

07:39 
Downpour. 

07:42 
The rain has washed away all of the cares. 

07:47 
Дождь смыл все заботы. 

07:50 
All of the cares. 

07:55 
The water has taken away your hardships. 

07:57 
The water has taken away your hardships.
0000
 
stdout
1
00:08 
Hello, this is the Rest and Relax program. 

2
00:17 
Relax your entire body. 

3
00:24 
Entire body. 

4
00:31 
Relax your mind. 

5
00:33 
Relax your mind. 

6
00:45 
What season do you like the most? 

7
00:54 
Season. 

8
00:58 
Maybe it's hot summer. 

9
01:03 
Hot summer. 

10
01:05 
God bless. 

11
01:08 
Or perhaps frosty winter. 

12
01:11 
Морозная зима. 

13
01:14 
Frosty winter. 

14
01:15 
Frosty winter. 

15
01:17 
Every season is beautiful. 

16
01:20 
Любое время года прекрасно. 

17
01:24 
Beautiful, beautiful. 

18
01:27 
Let's recall our previous autumn. 

19
01:32 
Changeable and wonderful. 

20
01:34 
Вспомним прошлую осень. 

21
01:37 
Изменчивую и прекрасную. 

22
01:41 
Changeable and wonderful. 

23
01:42 
and 

24
01:48 
Changeable autumn. 

25
01:59 
Summer has come to an end. 

26
02:02 
Вот и закончилось лето. 

27
02:06 
Has come to an end. 

28
02:11 
The heat has faded, but the cold hasn't come yet. 

29
02:16 
Жара уже спала, но холода еще не наступили. 

30
02:23 
Hasn't come yet. 

31
02:26 
The ladybird has settled comfortably on a leaf. 

32
02:32 
Божья коровка удобно устроилась на листочке. 

33
02:37 
Settled comfortably on a leaf. 

34
02:46 
The leaves have become yellow. 

35
02:51 
Листва пожелтела. 

36
02:54 
Leaves have become yellow. 

37
02:56 
Come yellow. 

38
03:05 
This bright yellow color brings us joy. 

39
03:08 
Этот яркий желтый цвет несет нам радость. 

40
03:14 
Bright yellow color. 

41
03:15 
Yellow and color. 

42
03:19 
It inspires optimism. 

43
03:25 
Inspires optimism. 

44
03:28 
It gives hope for the better. 

45
03:33 
Hope for the better. 

46
03:45 
But one can feel a slight melancholy 

47
03:48 
for summer's end. 

48
03:55 
For summer's end. 

49
03:58 
Autumn is the time for reflection. 

50
04:03 
Time for reflection. 

51
04:08 
We've managed to do a lot. 

52
04:14 
To do a lot. 

53
04:15 
We do. 

54
04:18 
We've achieved great successes. 

55
04:20 
Мы добились больших успехов. 

56
04:25 
Achieved great successes. 

57
04:34 
The last autumn roses are still blooming. 

58
04:39 
Еще цветут последние осенние розы. 

59
04:44 
Last autumn roses. 

60
04:45 
Last autumn. 

61
04:53 
In addition to buds, roses also have thorns. 

62
04:57 
Но кроме бутонов, у роз есть и шипы. 

63
05:03 
Also have thorns. 

64
05:05 
So we'll have... 

65
05:09 
It's so similar to our life. 

66
05:12 
Как похоже на нашу жизнь. 

67
05:16 
Our life. 

68
05:18 
Hardships are next to joy. 

69
05:21 
Неприятности соседствуют с радостями. 

70
05:26 
Next to joy. 

71
05:27 
to joy. 

72
05:31 
But we are able to overcome everything. 

73
05:35 
Мы все преодолеем. 

74
05:37 
Overcome everything. 

75
05:38 
Overcom- 

76
05:42 
We are strong and self-confident. 

77
05:45 
Мы сильны и уверены в себе. 

78
05:49 
Strong and self-confident. 

79
05:57 
The wind has begun to blow. 

80
06:00 
Поднимается ветер. 

81
06:03 
Begun to blow. 

82
06:06 
The weather will become worse soon. 

83
06:10 
Скоро погода испортится. 

84
06:13 
Become worse. 

85
06:16 
Autumn will show its other side. 

86
06:19 
Осень покажет себя с другой стороны. 

87
06:25 
Its other side. 

88
06:27 
A lovely day has changed to bad weather. 

89
06:45 
Погожий денек сменился ненастьем. 

90
06:51 
Lovely day has changed. 

91
06:55 
There is no better day. 

92
06:57 
Nobody in the street. 

93
06:59 
На улице ни души. 

94
07:01 
Nobody. 

95
07:09 
It's drizzling rain. 

96
07:11 
Идет моросящий дождь. 

97
07:15 
Drizzling rain. 

98
07:23 
The rain has become heavier. 

99
07:25 
Дождь льет все сильнее. 

100
07:29 
Become heavier. 

101
07:32 
The rain turns into a downpour. 

102
07:35 
Дождь превращается в ливень. 

103
07:39 
Downpour. 

104
07:42 
The rain has washed away all of the cares. 

105
07:47 
Дождь смыл все заботы. 

106
07:50 
All of the cares. 

107
07:55 
The water has taken away your hardships. 

108
07:57 
The water has taken away your hardships.