結果
問題 |
No.494 yukicoder
|
ユーザー |
|
提出日時 | 2025-09-23 19:57:44 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 479 bytes |
コンパイル時間 | 2,908 ms |
コンパイル使用メモリ | 275,468 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-23 19:57:48 |
合計ジャッジ時間 | 3,976 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> [[nodiscard]] static inline constexpr char solve(const std::string& S) noexcept { static constexpr std::string target("yukicoder?"); return std::accumulate(target.begin(), target.end(), UINT32_C(0), std::bit_xor()) ^ std::accumulate(S.begin(), S.end(), UINT32_C(0), std::bit_xor()); } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::string S; S.reserve(9), std::cin >> S; std::cout << solve(S) << '\n'; return 0; }