That's 1 Minute See You Tomorrow

Limits 1s, 512 MB

You may heard the name of Nas Daily, a Facebook page by a travel video blogger Nuseir Yassin. He creates 1-minute videos of people daily or about facts from various countries.


This is a companion discussion topic for the original entry at https://toph.co/p/that-s-1-minute-see-you-tomorrow

Can anyone give me more samples please?

Why not make samples yourself? You know what the possible values of N, M and Li’s are.

It is a part of solving programming problems. :slight_smile:

try this input :stuck_out_tongue:
5
11
15
20
25
30
35

#include <bits/stdc++.h>
using namespace std;
int main()
{
int shots, sec, sum=0;

cin>>shots>>sec;
int clip[shots] ;
for (int i=0; i<shots; i++)
{
    cin>>clip[i];
    if (clip[i]<sec)
    {
        cout<<"NO";
    }
    sum=sum+sec;
}
if (sum=60)
{
    cout<<"YES";
}

return 0;

}
for some reason it shows wrong answer in the 3rd test case. can anyone help?

#include<stdio.h>
int main(){
unsigned int n,a,b,c,d=0;
scanf("%d %d" ,&n,&a);
unsigned int arr[1000];
for(int i=0;i<n;i++){
scanf("%d",&arr[i]);
b=arr[i]-a;
d=d+b;
}
if(60>=d){
printf(“YES”);
}
else{
printf(“NO”);
}
return 0;
}

whats wrong with my code???

#include <iostream>

using namespace std;

int main() {
    int a , b , c;
    cin >>  a >> b ;
    
    for(int i = 1 ; i <= a ; i++){
        cin >> c;
    }
    int x ;
    x = a*b;
    
    if(x >= 60 && c >= b)
    cout << "YES";
    else 
    cout << "NO";
} 

whats wrong in this code;