結果
| 問題 | No.5001 排他的論理和でランニング |
| ユーザー |
|
| 提出日時 | 2018-03-16 22:37:00 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 1,500 ms |
| コード長 | 413 bytes |
| コンパイル時間 | 571 ms |
| 実行使用メモリ | 6,148 KB |
| スコア | 24,513,786 |
| 最終ジャッジ日時 | 2020-03-12 19:24:45 |
|
ジャッジサーバーID (参考情報) |
judge7 / |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <random>
using namespace std;
random_device rnd;
int main(){
int N, M;
cin >> N >> M;
int nums[N];
for(int i = 0; i < N; i++){
cin >> nums[i];
}
string ans_string;
for(int i = 0; i < M; i++){
ans_string += to_string(nums[i]) + " ";
}
ans_string.pop_back();
cout << ans_string << endl;
}