結果
| 問題 |
No.687 E869120 and Constructing Array 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-17 19:04:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 1,501 ms |
| コンパイル使用メモリ | 161,644 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 16:34:50 |
| 合計ジャッジ時間 | 2,390 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 4 WA * 2 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int getRandRange(int min, int max) {
static mt19937 engine;
random_device rd;
int seed = rd();
engine.seed(seed);
uniform_int_distribution<int> dist(min, max);
return dist(engine);
}
int main(){
int a;
cin >> a;
int rn = getRandRange(0,a);
cout << rn << " " << a-rn <<endl;
}