Submission #23578585
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define endl "\n"
#define rep(i, n) for (int i = 0; i < n; i++)
//#define sort(v) sort(v.begin(), v.end());
//#define rsort(v) sort(v.rbegin(), v.rend());
void solve()
{
ld n;
cin >> n;
ld val = n * (1.08);
if (val < 206)
{
cout << "Yay!" << endl;
}
else if ((ll)val == 206)
{
cout << "so-so" << endl;
}
else
{
cout << ":(" << endl;
}
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.in", "r", stdin);
freopen("output.in", "w", stdout);
#endif
int t;
t = 1;
while (t--)
{
solve();
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Maxi-Buying |
| User | EramallaAravind |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 734 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3668 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 8 ms | 3660 KiB |
| sample_02.txt | AC | 2 ms | 3552 KiB |
| sample_03.txt | AC | 2 ms | 3548 KiB |
| test_01.txt | AC | 5 ms | 3660 KiB |
| test_02.txt | AC | 2 ms | 3668 KiB |
| test_03.txt | AC | 2 ms | 3668 KiB |
| test_04.txt | AC | 2 ms | 3660 KiB |
| test_05.txt | AC | 3 ms | 3660 KiB |
| test_06.txt | AC | 2 ms | 3668 KiB |
| test_07.txt | AC | 2 ms | 3660 KiB |