1 solutions

  • 1
    @ 2025-3-30 14:09:45
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n,h,w;cin>>n>>h>>w;
    	for(int i=1;i<=n;i++)
    	{
    		int m;cin>>m;
    		if (h+m>=w){cout<<i;
    		break;}
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    2338
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    19
    Accepted
    10
    Uploaded By