Submission #63244396


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
int n;
cin >> n;
vector<int> A(n);
rep(i, n) cin >> A[i];
rep(i, n-1) {
if (A[i] >= A[i+1]) {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;

int main() {
    int n;
    cin >> n;
    vector<int> A(n);
    rep(i, n) cin >> A[i];
    rep(i, n-1) {
        if (A[i] >= A[i+1]) {
            cout << "No" << endl;
            return 0;
        }
    } 
    cout << "Yes" << endl;
    return 0;
}

Submission Info

Submission Time
Task A - Strictly Increasing?
User yuu0252
Language C++ 23 (gcc 12.2)
Score 100
Code Size 365 Byte
Status AC
Exec Time 2 ms
Memory 3680 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 30
Set Name Test Cases
Sample 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt
All 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 01-random-001.txt, 01-random-002.txt, 01-random-003.txt, 01-random-004.txt, 01-random-005.txt, 01-random-006.txt, 01-random-007.txt, 01-random-008.txt, 01-random-009.txt, 02-small-001.txt, 02-small-002.txt, 02-small-003.txt, 02-small-004.txt, 02-small-005.txt, 02-small-006.txt, 02-small-007.txt, 02-small-008.txt, 02-small-009.txt, 03-large-001.txt, 03-large-002.txt, 03-large-003.txt, 03-large-004.txt, 03-large-005.txt, 03-large-006.txt, 03-large-007.txt, 03-large-008.txt, 03-large-009.txt
Case Name Status Exec Time Memory
00-sample-001.txt AC 2 ms 3680 KB
00-sample-002.txt AC 1 ms 3536 KB
00-sample-003.txt AC 1 ms 3604 KB
01-random-001.txt AC 1 ms 3476 KB
01-random-002.txt AC 1 ms 3536 KB
01-random-003.txt AC 1 ms 3652 KB
01-random-004.txt AC 1 ms 3544 KB
01-random-005.txt AC 1 ms 3600 KB
01-random-006.txt AC 1 ms 3540 KB
01-random-007.txt AC 1 ms 3456 KB
01-random-008.txt AC 1 ms 3492 KB
01-random-009.txt AC 1 ms 3504 KB
02-small-001.txt AC 1 ms 3540 KB
02-small-002.txt AC 1 ms 3636 KB
02-small-003.txt AC 1 ms 3632 KB
02-small-004.txt AC 1 ms 3540 KB
02-small-005.txt AC 1 ms 3600 KB
02-small-006.txt AC 1 ms 3496 KB
02-small-007.txt AC 1 ms 3680 KB
02-small-008.txt AC 1 ms 3492 KB
02-small-009.txt AC 1 ms 3496 KB
03-large-001.txt AC 1 ms 3496 KB
03-large-002.txt AC 1 ms 3432 KB
03-large-003.txt AC 1 ms 3644 KB
03-large-004.txt AC 1 ms 3500 KB
03-large-005.txt AC 1 ms 3496 KB
03-large-006.txt AC 1 ms 3600 KB
03-large-007.txt AC 1 ms 3560 KB
03-large-008.txt AC 1 ms 3508 KB
03-large-009.txt AC 1 ms 3496 KB


2025-04-04 (Fri)
07:38:26 +00:00