QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#63555#2485. Astrologytriplem5ds#WA 2ms3504kbC++142.2kb2022-11-22 17:49:462022-11-22 17:49:49

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-22 17:49:49]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3504kb
  • [2022-11-22 17:49:46]
  • 提交

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() {

    int t = 1;
//    cin >> t;
    while (t--) {
        doWork();
    }
    return 0;
}

///Look at my code ya codeomk


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3504kb

input:

2021-05-07

output:


result:

wrong answer 1st lines differ - expected: 'Taurus', found: ''