QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#178284 | #4298. SMS from MCHS | NYCU_Yamada# | WA | 0ms | 3728kb | C++20 | 1004b | 2023-09-13 20:38:35 | 2023-09-13 20:38:35 |
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 (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
詳細信息
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!'