1 solutions

  • 1
    @ 2025-8-7 16:43:27

    自己写

    //mch 2025 0805 GESP 一级
    #include <iostream>
    using namespace std;
    #define int long long
    int main() {
    int n, a = 0, b;	
    cin >> n;
    
    	for (int i = 0; i < n; ++i) {
    		b = a;
    		cin >> a;
    		if (a <= b) {
    			cout << b;
    			return 0;
    		}
    	}
    	cout << a;
    }
    
    
    
    

    Information

    ID
    17968
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    266
    Accepted
    65
    Uploaded By