結果
問題 |
No.5001 排他的論理和でランニング
|
ユーザー |
|
提出日時 | 2018-03-16 22:30:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 578 ms |
実行使用メモリ | 7,484 KB |
スコア | 0 |
最終ジャッジ日時 | 2020-03-12 19:22:47 |
ジャッジサーバーID (参考情報) |
judge9 / |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 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[rnd() % N]) + " "; } ans_string.pop_back(); cout << ans_string << endl; }