QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#178286#4298. SMS from MCHSNYCU_Yamada#AC ✓0ms3756kbC++201004b2023-09-13 20:40:072023-09-13 20:40:07

Judging History

你现在查看的是最新测评结果

  • [2023-09-13 20:40:07]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3756kb
  • [2023-09-13 20:40:07]
  • 提交

answer

#ifndef Yamada
#define Yamada
#include Yamada __FILE__ Yamada

void solve() {
    int t1, v1; cin >> t1 >> v1;
    int t2, v2; cin >> t2 >> v2;
    
         if (t2 < 0 and v2 >= 10) cout << "A storm warning for tomorrow! Be careful and stay home if possible!" << "\n";
    else if (t2 < t1)             cout << "MCHS warns! Low temperature is expected tomorrow." << "\n";
    else if (v2 > v1)             cout << "MCHS warns! Strong wind is expected tomorrow." << "\n";
    else                          cout << "No message" << "\n";
}

signed main() {
    IOS();
    int t = 1; // cin >> t;
    for (int i = 1; i <= t; ++i) solve();
    return 0;
}

#else

#include <bits/stdc++.h>
using namespace std;
#define int int64_t
using pii = pair<int,int>;

#define SZ(a) (int)((a).size())
#define ALL(a) begin(a), end(a)
#define RALL(a) rbegin(a), rend(a)


#ifdef local
#define IOS() void()
#else
#define IOS() ios_base::sync_with_stdio(0); cin.tie(0);
#endif

#endif

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3680kb

input:

15 2
5 3

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

15 1
17 1

output:

No message

result:

ok single line: 'No message'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

-26 16
-22 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

47 6
33 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

-3 2
24 11

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

-30 9
28 3

output:

No message

result:

ok single line: 'No message'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

-24 0
-19 7

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

-39 1
-3 1

output:

No message

result:

ok single line: 'No message'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

-37 5
-5 3

output:

No message

result:

ok single line: 'No message'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

-29 3
-8 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #11:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

-49 10
-21 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #12:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

-38 15
-3 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #13:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

-49 2
-26 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #14:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

-47 14
-28 14

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #15:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

-48 17
-1 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #16:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

-28 1
-28 7

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #17:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

-5 5
-5 5

output:

No message

result:

ok single line: 'No message'

Test #18:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

-49 19
-49 8

output:

No message

result:

ok single line: 'No message'

Test #19:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

-9 8
-9 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #20:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

-20 10
-20 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #21:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

-33 18
-33 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #22:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

-40 16
-40 17

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #23:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

-49 11
-49 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #24:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

-46 13
-46 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #25:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

-15 4
-50 9

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #26:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

8 7
-7 7

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #27:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

0 15
-35 0

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #28:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

7 5
-25 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #29:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

-12 10
-35 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #30:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

-32 19
-43 10

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #31:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

35 7
-22 18

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #32:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

-6 11
-49 11

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #33:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

-1 17
-37 16

output:

A storm warning for tomorrow! Be careful and stay home if possible!

result:

ok single line: 'A storm warning for tomorrow! ...eful and stay home if possible!'

Test #34:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

-14 0
0 7

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #35:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

-33 3
0 3

output:

No message

result:

ok single line: 'No message'

Test #36:

score: 0
Accepted
time: 0ms
memory: 3568kb

input:

-38 12
0 4

output:

No message

result:

ok single line: 'No message'

Test #37:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

-12 5
0 10

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #38:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

-22 10
0 10

output:

No message

result:

ok single line: 'No message'

Test #39:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

-46 19
0 10

output:

No message

result:

ok single line: 'No message'

Test #40:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

-7 11
0 14

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #41:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

-29 17
0 17

output:

No message

result:

ok single line: 'No message'

Test #42:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

-29 17
0 16

output:

No message

result:

ok single line: 'No message'

Test #43:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

0 0
0 1

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #44:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

0 9
0 9

output:

No message

result:

ok single line: 'No message'

Test #45:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

0 10
0 6

output:

No message

result:

ok single line: 'No message'

Test #46:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

0 0
0 10

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #47:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

0 10
0 10

output:

No message

result:

ok single line: 'No message'

Test #48:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

0 18
0 10

output:

No message

result:

ok single line: 'No message'

Test #49:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

0 7
0 13

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #50:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

0 16
0 16

output:

No message

result:

ok single line: 'No message'

Test #51:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

0 18
0 12

output:

No message

result:

ok single line: 'No message'

Test #52:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

28 3
0 6

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #53:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

3 7
0 7

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #54:

score: 0
Accepted
time: 0ms
memory: 3656kb

input:

36 5
0 2

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #55:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

8 2
0 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #56:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

7 10
0 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #57:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

45 17
0 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #58:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

46 5
0 15

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #59:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

19 16
0 16

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #60:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

10 17
0 14

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #61:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

-2 0
49 7

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #62:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

-10 0
5 0

output:

No message

result:

ok single line: 'No message'

Test #63:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

-22 18
36 0

output:

No message

result:

ok single line: 'No message'

Test #64:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

-8 4
11 10

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #65:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

-42 10
14 10

output:

No message

result:

ok single line: 'No message'

Test #66:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

-17 17
17 10

output:

No message

result:

ok single line: 'No message'

Test #67:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

-4 12
37 20

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #68:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

-44 19
35 19

output:

No message

result:

ok single line: 'No message'

Test #69:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

-13 13
15 12

output:

No message

result:

ok single line: 'No message'

Test #70:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

33 3
33 7

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #71:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

49 6
49 6

output:

No message

result:

ok single line: 'No message'

Test #72:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

22 18
22 9

output:

No message

result:

ok single line: 'No message'

Test #73:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

4 1
4 10

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #74:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

40 10
40 10

output:

No message

result:

ok single line: 'No message'

Test #75:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

33 16
33 10

output:

No message

result:

ok single line: 'No message'

Test #76:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

12 11
12 19

output:

MCHS warns! Strong wind is expected tomorrow.

result:

ok single line: 'MCHS warns! Strong wind is expected tomorrow.'

Test #77:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

33 18
33 18

output:

No message

result:

ok single line: 'No message'

Test #78:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

21 20
21 14

output:

No message

result:

ok single line: 'No message'

Test #79:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

19 1
13 6

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #80:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

45 3
23 3

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #81:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

47 18
16 7

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #82:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

3 3
2 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #83:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

36 10
24 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #84:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

41 11
1 10

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #85:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

31 5
11 15

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #86:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

43 13
1 13

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'

Test #87:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

43 16
24 12

output:

MCHS warns! Low temperature is expected tomorrow.

result:

ok single line: 'MCHS warns! Low temperature is expected tomorrow.'