Please sign in first.
Submission #52434850
Source Code Expand
// LUOGU_RID: 156029698
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define eb emplace_back
//#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long ll;
typedef pair<int,int> PII;
const ll MOD=998244353;
// head
signed main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n;cin>>n;
map<int,int> M;
for(int i=0;i<n;i++) {int tmp;cin>>tmp;M[tmp];}
cout<<M.size()<<endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Count Distinct Integers |
| User | gangbengr |
| Language | C++ 20 (gcc 12.2) |
| Score | 200 |
| Code Size | 561 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3540 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 3360 KiB |
| example_01.txt | AC | 1 ms | 3396 KiB |
| example_02.txt | AC | 1 ms | 3388 KiB |
| test_00.txt | AC | 1 ms | 3428 KiB |
| test_01.txt | AC | 1 ms | 3536 KiB |
| test_02.txt | AC | 1 ms | 3484 KiB |
| test_03.txt | AC | 1 ms | 3428 KiB |
| test_04.txt | AC | 1 ms | 3408 KiB |
| test_05.txt | AC | 1 ms | 3540 KiB |
| test_06.txt | AC | 1 ms | 3468 KiB |