結果
問題 |
No.2593 Reorder and Mod 120
|
ユーザー |
![]() |
提出日時 | 2023-12-24 20:01:09 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
RE
(最新)
CE
(最初)
|
実行時間 | - |
コード長 | 641 bytes |
コンパイル時間 | 15,625 ms |
コンパイル使用メモリ | 324,780 KB |
最終ジャッジ日時 | 2025-02-18 14:16:18 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 WA * 18 RE * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; using namespace chrono; #if __has_include(<atcoder/all>) #include <atcoder/all> using namespace atcoder; #endif int main() { const auto start = steady_clock::now(); random_device rnd; mt19937 engine(rnd()); int64_t n; string s; cin >> n >> s; set<int64_t> st; while (duration_cast<milliseconds>(steady_clock::now() - start).count() < 1900) { if (st.size() == 10) { break; } ranges::shuffle(s, engine); st.insert(stoll(s.substr(n - 3, 3)) % 40); } cout << st.size() << endl; return 0; }