This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
int n,m;cin>>n>>m; | |
int ans=1900*m+100*(n-m); | |
for(int i=0;i<m;++i){ | |
ans*=2; | |
} | |
cout<<ans<<endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
const long long int inf=9999999999999999; | |
int main(){ | |
int n;cin>>n; | |
vector<long long int>a(n); | |
vector<long long int>b(n); | |
for(int i=0;i<n;++i){ | |
cin>>a[i]; | |
b[0]=a[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
int n;cin>>n; | |
vector<int>a(n); | |
for(int i=0;i<n;++i){ | |
cin>>a[i]; | |
} | |
for(int i=n-1;0<=i;i=i-2){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
#define ll long long | |
const ll mod=1000000007; | |
ll facctoria(ll k){ | |
ll mol=1; | |
for (ll i=1;i<=k;++i) | |
{ | |
mol*=i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
int sx,sy,tx,ty; | |
cin>>sx>>sy>>tx>>ty; | |
int x=tx-sx; | |
int y=ty-sy; | |
for(int i=0;i<x;++i)cout<<"R"; | |
for(int i=0;i<y;++i)cout<<"U"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
long long int h,w,a,b; | |
long long int ans,M,m,X,Y,Z; | |
cin>>h>>w; | |
if(h*w%3==0){ | |
cout<<0<<endl; | |
return 0; |