QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#63554 | #2485. Astrology | triplem5ds# | WA | 3ms | 3460kb | C++14 | 2.3kb | 2022-11-22 17:48:55 | 2022-11-22 17:48:56 |
Judging History
answer
/// Brrrr Brrrr
#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("avx,avx2,fma")
#include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define F first
#define S second
#define f(i, a, b) for(int i = a; i < b; i++)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define sz(x) (int)(x).size()
#define mp(x,y) make_pair(x,y)
#define popCnt(x) (__builtin_popcountll(x))
#define int ll
using ll = long long;
using ii = pair<int, int>;
using ull = unsigned long long;
const int N = 2e5+5, LG = 18, MOD = (119 << 23) + 1;
const long double PI = acos(-1);
const long double EPS = 1e-7;
const int dx[] = {1,-1,1,-1};
const int dy[] = {1,-1,-1,1};
void doWork() {
int month, day, year;
scanf("%d-%d-%d", &year, &month, &day);
if((month==3&&day >= 21) || (month == 4 && day <= 19))
cout << "Aries\n";
if((month==4&&day >= 20) || (month == 5 && day <= 20))
cout << "Taurus\n";
if((month==5&day >= 21) || (month == 6 && day <= 20))
cout << "Gemini\n";
if((month==6&day >= 21) || (month == 7 && day <= 22))
cout << "Cancer\n";
if((month==7&day >= 23) || (month == 8 && day <= 22))
cout << "Leo\n";
if((month==8&day >= 23) || (month == 9 && day <= 22))
cout << "Virgo\n";
if((month==9&day >= 23) || (month == 10 && day <= 22))
cout << "Libra\n";
if((month==10&day >= 23) || (month == 11 && day <= 22))
cout << "Scorpio\n";
if((month==11&day >= 23) || (month == 12 && day <= 21))
cout << "Sagittarius\n";
if((month==12&day >= 22) || (month == 1 && day <= 19))
cout << "Capricorn\n";
if((month==1&day >= 20) || (month == 2 && day <= 18))
cout << "Aquarius\n";
if((month==2&day >= 19) || (month == 3 && day <= 20))
cout << "Pisces\n";
}
int32_t main() {
#ifdef ONLINE_JUDGE
ios_base::sync_with_stdio(0);
cin.tie(0);
#endif // ONLINE_JUDGE
int t = 1;
// cin >> t;
while (t--) {
doWork();
}
return 0;
}
///Look at my code ya codeomk
详细
Test #1:
score: 0
Wrong Answer
time: 3ms
memory: 3460kb
input:
2021-05-07
output:
Gemini
result:
wrong answer 1st lines differ - expected: 'Taurus', found: 'Gemini'