結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2025-09-21 20:02:27 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 2,808 ms |
コンパイル使用メモリ | 275,432 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-21 20:02:31 |
合計ジャッジ時間 | 3,635 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘constexpr const char* solve(uint_fast32_t, uint_fast32_t)’: main.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type] 16 | } | ^
ソースコード
#include <bits/stdc++.h> [[nodiscard]] static inline constexpr const char* solve(const uint_fast32_t N, const uint_fast32_t K) noexcept { switch (((N + 3) - K) % 3) { case 0: return "Drew"; case 1: return "Lost"; case 2: return "Won"; } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t N, K; std::cin >> N >> K; std::cout << solve(N, K) << '\n'; return 0; }