QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#796495 | #2485. Astrology | AA_Surely# | AC ✓ | 0ms | 3864kb | C++17 | 2.2kb | 2024-12-01 19:52:18 | 2024-12-01 19:52:20 |
Judging History
answer
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define FOR(i, x, n) for(int i = x; i < n; i++)
#define F0R(i, n) FOR(i, 0, n)
#define ROF(i, x, n) for(int i = n - 1; i >= x; i--)
#define R0F(i, n) ROF(i, 0, n)
#define WTF cout << "WTF" << endl
#define IOS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define F first
#define S second
#define PB push_back
#define EP emplace_back
#define ALL(x) x.begin(), x.end()
#define RALL(x) x.rbegin(), x.rend()
using namespace std;
typedef long long LL;
typedef long double LD;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef vector<int> VI;
typedef vector<LL> VLL;
typedef vector<PII> VPII;
typedef vector<PLL> VPLL;
typedef complex<LD> Point;
const int N = 5e5 + 7;
const int INF = 1e9 + 7;
const int LOG = 22;
const int A = 26;
const int SQ = 320;
const int MOD = 1e9 + 7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int main() {
IOS;
string inp;
cin >> inp;
int m = (inp[5] - '0') * 10 + inp[6] - '0';
int d = (inp[8] - '0') * 10 + inp[9] - '0';
if ((m == 3 && d >= 21) || (m == 4 && d <= 19)) {
cout << "Aries" << endl;
}
if ((m == 4 && d >= 20) || (m == 5 && d <= 20)) {
cout << "Taurus" << endl;
}
if ((m == 5 && d >= 21) || (m == 6 && d <= 20)) {
cout << "Gemini" << endl;
}
if ((m == 6 && d >= 21) || (m == 7 && d <= 22)) {
cout << "Cancer" << endl;
}
if ((m == 7 && d >= 23) || (d <= 22 && m == 8)) {
cout << "Leo" << endl;
}
if ((m == 8 && d >= 23) || (m == 9 && d <= 22)) {
cout << "Virgo" << endl;
}
if ((m == 9 && d >= 23) || (m == 10 && d <= 22)) {
cout << "Libra" << endl;
}
if ((m == 10 && d >= 23) || (m == 11 && d <= 22)) {
cout << "Scorpio" << endl;
}
if ((m == 11 && d >= 23) || (m == 12 && d <= 21)) {
cout << "Sagittarius" << endl;
}
if ((m == 12 && d >= 22) || (d <= 19 && m == 1)) {
cout << "Capricorn" << endl;
}
if ((m == 1 && d >= 20) || (m == 2 && d <= 18)) {
cout << "Aquarius" << endl;
}
if ((m == 2 && d >= 19) || (m == 3 && d <= 20)) {
cout << "Pisces" << endl;
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3564kb
input:
2021-05-07
output:
Taurus
result:
ok single line: 'Taurus'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2050-10-28
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2040-06-07
output:
Gemini
result:
ok single line: 'Gemini'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2044-12-24
output:
Capricorn
result:
ok single line: 'Capricorn'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
2032-09-14
output:
Virgo
result:
ok single line: 'Virgo'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2039-07-19
output:
Cancer
result:
ok single line: 'Cancer'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2029-11-18
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2024-10-18
output:
Libra
result:
ok single line: 'Libra'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2032-03-15
output:
Pisces
result:
ok single line: 'Pisces'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2047-12-14
output:
Sagittarius
result:
ok single line: 'Sagittarius'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2044-09-23
output:
Libra
result:
ok single line: 'Libra'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2026-12-09
output:
Sagittarius
result:
ok single line: 'Sagittarius'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
2048-07-22
output:
Cancer
result:
ok single line: 'Cancer'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2047-11-09
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
2044-11-11
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2049-10-16
output:
Libra
result:
ok single line: 'Libra'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2026-05-28
output:
Gemini
result:
ok single line: 'Gemini'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
2024-03-12
output:
Pisces
result:
ok single line: 'Pisces'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2041-02-26
output:
Pisces
result:
ok single line: 'Pisces'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2035-12-27
output:
Capricorn
result:
ok single line: 'Capricorn'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
2023-05-17
output:
Taurus
result:
ok single line: 'Taurus'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2029-02-02
output:
Aquarius
result:
ok single line: 'Aquarius'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2022-06-19
output:
Gemini
result:
ok single line: 'Gemini'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2022-11-05
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2036-08-24
output:
Virgo
result:
ok single line: 'Virgo'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2033-05-26
output:
Gemini
result:
ok single line: 'Gemini'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2043-10-17
output:
Libra
result:
ok single line: 'Libra'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
2040-08-27
output:
Virgo
result:
ok single line: 'Virgo'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
2036-12-10
output:
Sagittarius
result:
ok single line: 'Sagittarius'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
2021-09-19
output:
Virgo
result:
ok single line: 'Virgo'
Test #31:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2034-08-08
output:
Leo
result:
ok single line: 'Leo'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2026-05-19
output:
Taurus
result:
ok single line: 'Taurus'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
2035-03-08
output:
Pisces
result:
ok single line: 'Pisces'
Test #34:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2038-03-02
output:
Pisces
result:
ok single line: 'Pisces'
Test #35:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
2041-05-24
output:
Gemini
result:
ok single line: 'Gemini'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2028-09-01
output:
Virgo
result:
ok single line: 'Virgo'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2042-08-21
output:
Leo
result:
ok single line: 'Leo'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
2049-02-06
output:
Aquarius
result:
ok single line: 'Aquarius'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2029-05-22
output:
Gemini
result:
ok single line: 'Gemini'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2045-07-04
output:
Cancer
result:
ok single line: 'Cancer'
Test #41:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2039-06-07
output:
Gemini
result:
ok single line: 'Gemini'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2049-01-20
output:
Aquarius
result:
ok single line: 'Aquarius'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2033-03-24
output:
Aries
result:
ok single line: 'Aries'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
2035-11-18
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #45:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2031-07-19
output:
Cancer
result:
ok single line: 'Cancer'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2042-09-28
output:
Libra
result:
ok single line: 'Libra'
Test #47:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2044-10-01
output:
Libra
result:
ok single line: 'Libra'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2021-03-01
output:
Pisces
result:
ok single line: 'Pisces'
Test #49:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2047-03-12
output:
Pisces
result:
ok single line: 'Pisces'
Test #50:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2047-07-16
output:
Cancer
result:
ok single line: 'Cancer'
Test #51:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2046-10-06
output:
Libra
result:
ok single line: 'Libra'
Test #52:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2029-10-23
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #53:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2025-12-14
output:
Sagittarius
result:
ok single line: 'Sagittarius'
Test #54:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
2038-02-20
output:
Pisces
result:
ok single line: 'Pisces'
Test #55:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2036-11-12
output:
Scorpio
result:
ok single line: 'Scorpio'
Test #56:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2027-07-22
output:
Cancer
result:
ok single line: 'Cancer'
Test #57:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2043-08-11
output:
Leo
result:
ok single line: 'Leo'
Test #58:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2047-01-16
output:
Capricorn
result:
ok single line: 'Capricorn'
Test #59:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2030-05-23
output:
Gemini
result:
ok single line: 'Gemini'
Test #60:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
2040-05-25
output:
Gemini
result:
ok single line: 'Gemini'
Test #61:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
2047-10-13
output:
Libra
result:
ok single line: 'Libra'
Test #62:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2025-11-24
output:
Sagittarius
result:
ok single line: 'Sagittarius'
Test #63:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2035-10-11
output:
Libra
result:
ok single line: 'Libra'
Test #64:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
2034-05-15
output:
Taurus
result:
ok single line: 'Taurus'
Test #65:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2028-10-17
output:
Libra
result:
ok single line: 'Libra'
Test #66:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2032-02-05
output:
Aquarius
result:
ok single line: 'Aquarius'
Test #67:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2023-07-02
output:
Cancer
result:
ok single line: 'Cancer'
Test #68:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2021-03-17
output:
Pisces
result:
ok single line: 'Pisces'
Test #69:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2050-06-07
output:
Gemini
result:
ok single line: 'Gemini'
Test #70:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2032-10-09
output:
Libra
result:
ok single line: 'Libra'
Test #71:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2043-07-26
output:
Leo
result:
ok single line: 'Leo'
Test #72:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2036-09-28
output:
Libra
result:
ok single line: 'Libra'
Test #73:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2042-01-18
output:
Capricorn
result:
ok single line: 'Capricorn'
Test #74:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2043-08-20
output:
Leo
result:
ok single line: 'Leo'
Test #75:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
2034-02-23
output:
Pisces
result:
ok single line: 'Pisces'
Test #76:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
2047-08-23
output:
Virgo
result:
ok single line: 'Virgo'