QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#178280#4298. SMS from MCHSNYCU_Yamada#WA 0ms3676kbC++20960b2023-09-13 20:37:452023-09-13 20:37:45

Judging History

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

  • [2023-09-13 20:37:45]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3676kb
  • [2023-09-13 20:37:45]
  • 提交

answer

#ifndef Yamada
#define Yamada
#include Yamada __FILE__ Yamada

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

详细

Test #1:

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

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

input:

15 1
17 1

output:

No message

result:

ok single line: 'No message'

Test #3:

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

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

input:

47 6
33 10

output:

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

result:

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