Submission #1114314
Source Code Expand
#include <bits/stdc++.h> #define ipow(a,b)+0.5 (int)pow(a,b) #define pb push_back #define mp make_pair #define mod 1000000007 #define fi first #define se second #define rep(i,n) for(int i=0;i<n;i++) #define reps(i,a,b) for(int i=a;i<=b;i++) using namespace std; typedef long long ll; typedef long double ld; class Task { public: void solve(istream& in,ostream& out) { int n; in>>n; out<<n*800-(n/15)*200<<endl; } }; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); Task solver; std::istream& in(std::cin); std::ostream& out(std::cout); solver.solve(in,out); out.flush(); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Restaurant |
User | rakcode1998 |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 719 Byte |
Status | AC |
Exec Time | 9 ms |
Memory | 892 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 9 ms | 892 KB |
00_example_02.txt | AC | 1 ms | 256 KB |
01.txt | AC | 1 ms | 256 KB |
02.txt | AC | 1 ms | 256 KB |
03.txt | AC | 1 ms | 256 KB |
04.txt | AC | 1 ms | 256 KB |
05.txt | AC | 1 ms | 256 KB |
06.txt | AC | 1 ms | 256 KB |