結果
| 問題 |
No.5001 排他的論理和でランニング
|
| ユーザー |
tecchaxn
|
| 提出日時 | 2018-03-16 22:26:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 1,500 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 1,037 ms |
| 実行使用メモリ | 7,420 KB |
| スコア | 35,088,705 |
| 最終ジャッジ日時 | 2020-03-12 19:22:24 |
|
ジャッジサーバーID (参考情報) |
judge8 / |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include<bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
#define ALL(v) (v).begin(),(v).end()
#define int long long
using namespace std;
//-----------------------------------------------------------------------
signed main()
{
int N,M; cin>>N>>M;
vector<int> a(N);
REP(i,N){
cin>>a[i];
}
sort(ALL(a));
REP(i,M-1) cout<<a[i]<<' ';
cout<<a[N-1]<<endl;
}
tecchaxn