結果
| 問題 | No.8129 Personal Color |
| コンテスト | |
| ユーザー |
risujiroh
|
| 提出日時 | 2026-04-01 22:56:30 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 3,270 bytes |
| 記録 | |
| コンパイル時間 | 4,109 ms |
| コンパイル使用メモリ | 348,044 KB |
| 実行使用メモリ | 355,884 KB |
| 最終ジャッジ日時 | 2026-04-01 22:56:50 |
| 合計ジャッジ時間 | 3,557 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 RE * 6 |
ソースコード
#if __INCLUDE_LEVEL__ == 0
#include __BASE_FILE__
map<string, string> mp{
{"ainta", "567ACE"},
{"Benq", "1E8449"},
{"heno239", "6BB75B"},
{"hitonanode", "9CA5B9"},
{"hos_lyric", "CAD8F5"},
{"jcvb", "000000"},
{"jiangly", "F8AAE5"},
{"koosaga", "808080"},
{"ksun48", "FF00FF"},
{"liuhengxi", "C5DAB1"},
{"maroonrk", "869120"},
{"molamola", "FF40A2"},
{"mulgokizary", "FFC0CB"},
{"Nachia", "7878DB"},
{"noshi91", "00DD33"},
{"pashka", "777777"},
{"peti1234", "0A9FEA"},
{"potato167", "028FF4"},
{"Radewoosh", "800080"},
{"scott_wu", "CC00FF"},
{"semiexp", "92D050"},
{"simonlindholm", "732E6C"},
{"snuke", "1000AC"},
{"sugim48", "C06000"},
{"tatyam", "FF6040"},
{"Um_nik", "08E8DE"},
{"WA_TLE", "A80080"},
{"yosupo", "274A78"},
};
void Solve() {
string s;
IN(s);
assert(mp.contains(s));
OUT(mp[s]);
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
Solve();
}
#elif __INCLUDE_LEVEL__ == 1
#include <bits/stdc++.h>
template <class T>
concept MyRange =
std::ranges::range<T> &&
!std::convertible_to<T, std::string_view> &&
!std::convertible_to<T, std::filesystem::path>;
template <class T>
concept MyTuple = std::__is_tuple_like<T>::value && !MyRange<T>;
namespace std {
istream& operator>>(istream& is, MyRange auto&& r) {
for (auto&& e : r) {
is >> e;
}
return is;
}
istream& operator>>(istream& is, MyTuple auto&& t) {
apply([&](auto&... xs) { (is >> ... >> xs); }, t);
return is;
}
ostream& operator<<(ostream& os, MyRange auto&& r) {
auto sep = "";
for (auto&& e : r) {
os << exchange(sep, " ") << forward<decltype(e)>(e);
}
return os;
}
ostream& operator<<(ostream& os, MyTuple auto&& t) {
auto sep = "";
apply([&](auto&... xs) { ((os << exchange(sep, " ") << xs), ...); }, t);
return os;
}
} // namespace std
template <class T>
class OneBased {
public:
explicit OneBased(T&& x) : ref_(std::forward<T>(x)) {}
template <class... Ts>
requires(sizeof...(Ts) > 1)
OneBased(Ts&&... xs) : ref_(std::forward_as_tuple(std::forward<Ts>(xs)...)) {}
friend std::istream& operator>>(std::istream& is, OneBased x) {
if constexpr (MyRange<T>) {
for (auto&& e : x.ref_) {
is >> ::OneBased(e);
}
} else if constexpr (MyTuple<T>) {
std::apply([&](auto&... xs) { (is >> ... >> ::OneBased(xs)); }, x.ref_);
} else {
is >> x.ref_;
--x.ref_;
}
return is;
}
friend std::ostream& operator<<(std::ostream& os, OneBased x) {
if constexpr (MyRange<T>) {
auto f = [](auto&& e) { return ::OneBased(std::forward<decltype(e)>(e)); };
os << (x.ref_ | std::views::transform(f));
} else if constexpr (MyTuple<T>) {
std::apply([&](auto&... xs) { os << std::tuple(::OneBased(xs)...); }, x.ref_);
} else {
os << ++x.ref_;
--x.ref_;
}
return os;
}
private:
T ref_;
};
template <class T>
OneBased(T&&) -> OneBased<T>;
template <class... Ts>
OneBased(Ts&&...) -> OneBased<std::tuple<Ts...>>;
using namespace std;
#define IN(...) (cin >> forward_as_tuple(__VA_ARGS__))
#define OUT(...) (cout << forward_as_tuple(__VA_ARGS__) << '\n')
#endif // __INCLUDE_LEVEL__ == 1
risujiroh