1 条题解
-
0
题目解谜过程
1. 从题目名称与提示入手
- 提示 1:“Look at the problem name. What can be premiered at a wrong time?” 暗示“视频社论(editorial)”是在错误的时间发布的。
- 提示 2:“Where can you usually find an editorial?” 指向博客(blog)。
- 提示 3:“In the last paragraphs of the blog, there's a link to the editorial.” 引导找到隐藏的视频链接。
2. 解析视频中的音乐线索
视频中依次播放了 8 首音乐:
- What's The Problem? (by OSKI)
- 23 (by Diamond Eyes)
- Time (by OVSKY)
- 51 (by THYKIER)
- A&B (by MADZI & ETikka)
- On (by Alisky)
- Code (by MANSHN)
- Forces (by Jim Yosef)
将歌曲名拼接成句子:
what's the problem 23 time 51 A&B on code forces3. 推导题目真正含义
- 23 × 51 = 1173,因此句子实际指向 Codeforces 上的 1173A 和 1173B 两道题;
- 视频中的幻灯片给出了本题的输入输出格式:
- 输入
first→ 输出Nauuo and Votes(对应 1173A); - 输入
second→ 输出Nauuo and Chess(对应 1173B)。
- 输入
解题思路
本题本质是固定输出的条件分支题:
- 读取输入字符串;
- 判断输入是
first还是second; - 直接输出对应的固定字符串。
无需任何复杂计算或算法,核心是解谜过程中获取隐藏的规则。
标准程序代码(C++)
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s == "first") { cout << "Nauuo and Votes" << endl; } else if (s == "second") { cout << "Nauuo and Chess" << endl; } return 0; }
- 1
信息
- ID
- 6755
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- 递交数
- 1
- 已通过
- 1
- 上传者