結果
問題 | No.5014 セクスタプル (reactive) |
ユーザー |
![]() |
提出日時 | 2022-11-08 00:10:53 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 898 bytes |
コンパイル時間 | 977 ms |
実行使用メモリ | 22,864 KB |
スコア | 166,870,268 |
平均クエリ数 | 35.00 |
最終ジャッジ日時 | 2022-11-28 11:32:45 |
合計ジャッジ時間 | 8,270 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 100 |
ソースコード
#include <algorithm> #include <iostream> #include <random> class xrand { uint64_t x; public: using result_type = uint32_t; static constexpr result_type min() { return std::numeric_limits<result_type>::min(); } static constexpr result_type max() { return std::numeric_limits<result_type>::max(); } xrand(uint64_t k) : x(k) {} xrand() : xrand(1) {} result_type operator()() { x ^= x << 9; x ^= x >> 7; return (x * 0x123456789abcdef) >> 32; } }; int main() { std::random_device rng_seed; xrand rng(uint64_t(rng_seed()) << 32 | rng_seed()); std::vector<int> order(36); std::iota(order.begin(), order.end(), 0); std::shuffle(order.begin(), order.end(), rng); for (int i = 0; i < 35; i++) { std::cout << order.at(i) / 6 + 1 << ' ' << order.at(i) % 6 + 1 << '\n'; } return 0; }