Submission #73883947
Source Code Expand
#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
using ll = long long;
using pii = pair<ll,ll>;
using db = long double;
int main(){
fastio;
int n,x;cin >> n >> x;
for (int i=0;i<n;i++){
int a;cin >> a;
if (x>a){
x = a;cout << 1 << "\n";
}else cout << 0 << "\n";
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - chmin |
| User | Axteln |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 352 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3588 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 1 ms | 3552 KiB |
| sample_02.txt | AC | 1 ms | 3432 KiB |
| sample_03.txt | AC | 1 ms | 3552 KiB |
| test_01.txt | AC | 1 ms | 3500 KiB |
| test_02.txt | AC | 1 ms | 3484 KiB |
| test_03.txt | AC | 1 ms | 3412 KiB |
| test_04.txt | AC | 1 ms | 3536 KiB |
| test_05.txt | AC | 1 ms | 3468 KiB |
| test_06.txt | AC | 1 ms | 3552 KiB |
| test_07.txt | AC | 1 ms | 3588 KiB |
| test_08.txt | AC | 1 ms | 3484 KiB |
| test_09.txt | AC | 1 ms | 3476 KiB |
| test_10.txt | AC | 1 ms | 3476 KiB |
| test_11.txt | AC | 1 ms | 3500 KiB |
| test_12.txt | AC | 1 ms | 3500 KiB |