結果
| 問題 |
No.2334 Distinct Cards
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-02 21:23:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 1,998 ms |
| コンパイル使用メモリ | 165,892 KB |
| 実行使用メモリ | 8,576 KB |
| 最終ジャッジ日時 | 2024-12-28 16:12:49 |
| 合計ジャッジ時間 | 4,592 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 WA * 10 RE * 11 |
ソースコード
#include<bits/stdc++.h>
typedef long long ll;
const int N=10010;
using namespace std;
int main()
{
ll n,m;
cin>>n>>m;
int a[N];
for(int i=0;i<n;i++)
cin>>a[i];
int cnt =0;
for(int i=0;i<m;i++)
{
if(a[i]!=a[i+1])
cnt++;
}
cout<<cnt<<endl;
return 0;
}