Submission #322552


Source Code Expand

#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iterator>
#include <bitset>
#include <numeric>
#include <list>
#include <iomanip>

#if __cplusplus >= 201103L
#include <array>
#include <tuple>
#include <initializer_list>
#include <unordered_set>
#include <unordered_map>
#include <forward_list>

#define cauto const auto&
#define ALL(v) begin(v),end(v)
#else
#define ALL(v) (v).begin(),(v).end()
#endif

using namespace std;


namespace{
typedef long long LL;
typedef pair<int,int> pii;
typedef pair<LL,LL> pll;

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
	v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
	stringstream ss;
	ss << f;
	ss >> t;
}


#define REP(i,n) for(int i=0;i<int(n);++i)
#define RALL(v) (v).rbegin(),(v).rend()


#define MOD 1000000007LL
#define EPS 1e-8


void mainmain(){
	int n, x;
	cin >> n >> x;
	int ans = 540 * x + 525 * (n - x);
	cout << ans << endl;
	
}



}
int main() try{
	mainmain();
}
catch(...){}

Submission Info

Submission Time
Task A - プレミアム会員
User climpet
Language C++ (G++ 4.6.4)
Score 100
Code Size 1656 Byte
Status AC
Exec Time 25 ms
Memory 924 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 22
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 23 ms 800 KB
subtask0_sample_02.txt AC 22 ms 800 KB
subtask0_sample_03.txt AC 21 ms 796 KB
subtask0_sample_04.txt AC 23 ms 732 KB
subtask1_random01.txt AC 24 ms 740 KB
subtask1_random02.txt AC 24 ms 796 KB
subtask1_random03.txt AC 23 ms 792 KB
subtask1_random04.txt AC 23 ms 804 KB
subtask1_random05.txt AC 22 ms 672 KB
subtask1_random06.txt AC 23 ms 796 KB
subtask1_random07.txt AC 23 ms 668 KB
subtask1_random08.txt AC 22 ms 784 KB
subtask1_random09.txt AC 22 ms 924 KB
subtask1_random10.txt AC 24 ms 748 KB
subtask1_random11.txt AC 22 ms 704 KB
subtask1_random12.txt AC 23 ms 804 KB
subtask1_random13.txt AC 24 ms 744 KB
subtask1_random14.txt AC 25 ms 916 KB
subtask1_random15.txt AC 23 ms 804 KB
subtask1_random16.txt AC 23 ms 916 KB
subtask1_random17.txt AC 23 ms 728 KB
subtask1_random18.txt AC 22 ms 796 KB