QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#178280 | #4298. SMS from MCHS | NYCU_Yamada# | WA | 0ms | 3676kb | C++20 | 960b | 2023-09-13 20:37:45 | 2023-09-13 20:37:45 |
Judging History
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!'