QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#178284#4298. SMS from MCHSNYCU_Yamada#WA 0ms3728kbC++201004b2023-09-13 20:38:352023-09-13 20:38:35

Judging History

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

  • [2023-09-13 20:38:35]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3728kb
  • [2023-09-13 20:38:35]
  • 提交

answer

#ifndef Yamada
#define Yamada
#include Yamada __FILE__ Yamada

void solve() {
    int t1, v1; cin >> t1 >> v1;
    int t2, v2; cin >> t2 >> v2;
    
         if (t1 < 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: 3728kb

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: 3684kb

input:

15 1
17 1

output:

No message

result:

ok single line: 'No message'

Test #3:

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

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: 3616kb

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: -100
Wrong Answer
time: 0ms
memory: 3612kb

input:

-3 2
24 11

output:

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

result:

wrong answer 1st lines differ - expected: 'MCHS warns! Strong wind is expected tomorrow.', found: 'A storm warning for tomorrow! ...eful and stay home if possible!'