結果
問題 |
No.3279 Dhole vs Monster
|
ユーザー |
|
提出日時 | 2025-09-27 11:36:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 2,963 ms |
コンパイル使用メモリ | 275,464 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-27 11:36:22 |
合計ジャッジ時間 | 4,056 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
#include <bits/stdc++.h> [[nodiscard]] static inline constexpr const char* solve(const uint_fast32_t L, const std::string& S) noexcept { static constexpr const char* rate[] = { "dummy", "390", "429", "468", "507", "546" }; return rate[L + (S == "Beat")]; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t L; std::string S; S.reserve(6); std::cin >> L >> S; std::cout << solve(L, S) << '\n'; return 0; }