Submission #73883152
Source Code Expand
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace atcoder;
using namespace std;
using ll = long long;
using mint = modint998244353;
#define nl '\n'
#define rep(i, n) for(ll i = 0; i < (ll)(n); ++i)
template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;}
template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;}
const ll INF = (1LL << 62);
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
void solve()
{
int n, x; cin >> n >> x;
rep(i, n)
{
int a; cin >> a;
if(a < x)
{
x = a;
cout << '1' << nl;
}else
{
cout << '0' << nl;
}
}
}
//--------------------------------------------------------------------------------
int main()
{
cout << fixed << setprecision(10);
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - chmin |
| User | Sachikosan |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 1081 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3628 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 | 3416 KiB |
| sample_02.txt | AC | 1 ms | 3416 KiB |
| sample_03.txt | AC | 1 ms | 3560 KiB |
| test_01.txt | AC | 1 ms | 3404 KiB |
| test_02.txt | AC | 1 ms | 3512 KiB |
| test_03.txt | AC | 1 ms | 3416 KiB |
| test_04.txt | AC | 1 ms | 3576 KiB |
| test_05.txt | AC | 1 ms | 3404 KiB |
| test_06.txt | AC | 1 ms | 3628 KiB |
| test_07.txt | AC | 1 ms | 3576 KiB |
| test_08.txt | AC | 1 ms | 3576 KiB |
| test_09.txt | AC | 1 ms | 3548 KiB |
| test_10.txt | AC | 1 ms | 3548 KiB |
| test_11.txt | AC | 1 ms | 3512 KiB |
| test_12.txt | AC | 1 ms | 3600 KiB |