Submission #8214611
Source Code Expand
#include <bits/stdc++.h> using namespace std; using ll = long long; using db = double; using ld = long double; #define fs first #define sc second #define pb push_back #define mp make_pair #define mt make_tuple #define eb emplace_back #define all(v) (v).begin(),(v).end() #define siz(v) (ll)(v).size() #define rep(i,a,n) for(ll i=a;i<(ll)(n);i++) #define repr(i,a,n) for(ll i=n-1;(ll)a<=i;i--) #define lb lower_bound #define ub upper_bound typedef pair<int,int> P; typedef pair<ll,ll> PL; const ll mod = 1000000007; const ll INF = 1000000099; const ll LINF = (ll)(1e18 +99); vector<ll> dx={-1,1,0,0},dy={0,0,-1,1}; template<typename T,typename U> void chmin(T& t, const U& u){if(t>u)t=u;} template<typename T,typename U> void chmax(T& t, const U& u){if(t<u)t=u;} template<typename T>T gcd(T a,T b){return b?gcd(b,a%b):a;} template<typename T>T mpow(T a, T n) { T res = 1; for(;n;n>>=1) { if (n & 1) res = res * a; a = a * a; } return res; } //cin.tie(0);ios::sync_with_stdio(false); signed main(){ int n,x;cin>>n>>x; if(n<=x)cout<<540*n<<endl; else cout<<540*x + 525*(n-x)<<endl; }
Submission Info
Submission Time | |
---|---|
Task | A - プレミアム会員 |
User | Hyado |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1163 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt |
All | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt, subtask1_random01.txt, subtask1_random02.txt, subtask1_random03.txt, subtask1_random04.txt, subtask1_random05.txt, subtask1_random06.txt, subtask1_random07.txt, subtask1_random08.txt, subtask1_random09.txt, subtask1_random10.txt, subtask1_random11.txt, subtask1_random12.txt, subtask1_random13.txt, subtask1_random14.txt, subtask1_random15.txt, subtask1_random16.txt, subtask1_random17.txt, subtask1_random18.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask0_sample_01.txt | AC | 1 ms | 256 KB |
subtask0_sample_02.txt | AC | 1 ms | 256 KB |
subtask0_sample_03.txt | AC | 1 ms | 256 KB |
subtask0_sample_04.txt | AC | 1 ms | 256 KB |
subtask1_random01.txt | AC | 1 ms | 256 KB |
subtask1_random02.txt | AC | 1 ms | 256 KB |
subtask1_random03.txt | AC | 1 ms | 256 KB |
subtask1_random04.txt | AC | 1 ms | 256 KB |
subtask1_random05.txt | AC | 1 ms | 256 KB |
subtask1_random06.txt | AC | 1 ms | 256 KB |
subtask1_random07.txt | AC | 1 ms | 256 KB |
subtask1_random08.txt | AC | 1 ms | 256 KB |
subtask1_random09.txt | AC | 1 ms | 256 KB |
subtask1_random10.txt | AC | 1 ms | 256 KB |
subtask1_random11.txt | AC | 1 ms | 256 KB |
subtask1_random12.txt | AC | 1 ms | 256 KB |
subtask1_random13.txt | AC | 1 ms | 256 KB |
subtask1_random14.txt | AC | 1 ms | 256 KB |
subtask1_random15.txt | AC | 1 ms | 256 KB |
subtask1_random16.txt | AC | 1 ms | 256 KB |
subtask1_random17.txt | AC | 1 ms | 256 KB |
subtask1_random18.txt | AC | 1 ms | 256 KB |