March CodeChef Starters 2021 Solutions (Rated for Div 3)

 STARTERS


Possible Victory 

C++ :

#include<bits/stdc++.h>
#define in(arr, n) for (int i=0; i<n; i++) cin >> arr[i]
#define out(arr, n) for (int i=0; i<n; i++) cout << arr[i] << "\n"
#define ll long long int
using namespace std;

int main () {

    ios_base::sync_with_stdio(0);
    cin.tie(0);
    #ifndef ONLINE_JUDGE
    freopen("input1.trt", "w", stdin);
    freopen("output1.trt", "w", stdout);
    #endif

    int w,x,y;

    cin >> w >> x >> y;

    if((w-y)<((20-x)*6*6)) cout<<"YES\n";
    else cout<<"NO\n";

    
    return 0;
}


Python :

inp=input()
r,o,c=list(map(int,inp.split(" ")))
#print(r,o,c,sep='\n')
res=20-o
#print(res)
res=res*36
#print(res)
res=c+res
#print(res)
if(res>r):
    print("YES")
else:
    print("NO")