問題一覧 > ネタ問題

No.8131 <strong>Note that, for the song given in this problem, it is guaranteed that notes of the same pitch never sound consecutively without a rest between them.</strong>

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 1024 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 27
作問者 : 👑 獅子座じゃない人 / テスター : Shirotsume
お気に入りにしたユーザー ProblemId : 13211 / 自分の提出
問題文最終更新日: 2026-03-31 01:05:43
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April Fool Contest 2026 (順位表) の他の問題:

Problem Statement

problem.mp3 - Google Drive

Transcribe by ear the main lead (square wave) of the song that can be heard from the shared link above. The song starts at exactly $1$ second.

This song is at BPM $120$ in $4$/$4$ time, and its length is $4$ measures. The tuning is $12$-tone equal temperament with A440 (A=440Hz).

Output Format
  • Describe the melody of the main lead in units of $16$th notes in the following format, and output it in $64$ lines. More precisely, let $T_n$ seconds $(T_n=1+n/8)$ be the time $n/4$ beats after the start of the song (exactly $1$ second), and on the $i$-th line $(1\le i\le 64)$, output the melody of the main lead in the interval from $T_{i-1}$ seconds to $T_i$ seconds in the following format.
    • If the main lead is sounding, output the letter representing the note name and the integer representing the octave, separated by a space (details of the format are described below).
    • If the main lead is not sounding, output only R, which represents a rest.
      • Even if all pitches and rhythms are correct, the verdict will be WA if only the note values (the lengths until the rests) are wrong.
    • For the song given in this problem, it is guaranteed that between $T_{i-1}$ seconds and $T_i$ seconds, neither whether the main lead is sounding nor its pitch (if it is sounding) changes.
  • Note names use the English notation C, D, E, F, G, A, B, and uppercase English letters must be used. Substituting these with the lowercase letters c, d, e, f, g, a, b is not allowed.
    • For a sharp, write # after the letter representing the note name (e.g. C#, F#). Do not put any character, including delimiters, between the letter and #.
      • In the judge of this problem, E# and B# are not allowed.
    • For a flat, write b after the letter representing the note name (e.g. Eb, Bb). Do not put any character, including delimiters, between the letter and b.
      • In the judge of this problem, Cb and Fb are not allowed.
    • In the output format of this problem, there are no characters corresponding to the natural sign, double sharp, double flat, and so on.
    • Enharmonic equivalents (such as C# and Db) are all allowed except for the aforementioned E#, B#, Cb, Fb, and mixing both is also allowed.
  • The integer representing the octave is defined so as to satisfy the following.
    • Middle C $(440\times 2^{-\frac{3}{4}}\,\mathrm{Hz}\approx 261.6\,\mathrm{Hz})$ is C 3 (note that it is not C 4 or the like).
    • For a note represented by $P$ $N$ ($P$ is the letter representing the note name and $N$ is the integer representing the octave), the note 1 octave above it is $P$ $(N+1)$, and the note 1 octave below it is $P$ $(N-1)$.
    • The integer representing the octave of a note whose note name is not C is equal to the integer representing the octave of the note a semitone below it.
    • The following are examples.
      • The note 1 octave above C 3 is C 4.
      • The note 1 octave below C 3 is C 2.
      • The note a semitone above C 3 is C# 3 or Db 3.
      • The note a semitone below C 3 is B 2.
    • In this notation, the frequency of the note represented by A 3 is exactly $440\,\mathrm{Hz}$.
  • In this problem, an output exactly the same as the previous line can be represented by outputting only ..
    • It is also allowed to output exactly the same as the previous line without using ., and it is also allowed to mix lines that use . and lines that do not.
    • If you write . on the $1$st line, the verdict will be WA.

Please also refer to the sample output.

Input

There is no input for this problem. It may be possible to get AC even with a Text submission.

Output

Output the result of your transcription in the specified output format.

Sample

Sample 1
Input
https://drive.google.com/file/d/14rUIQJMUniMZUeH0ktik8oArvfOHGGE-/view?usp=drive_link

There is no input for this problem, but the URL of sample.mp3 is included for the "Copy input sample" button.

sample.mp3 - Google Drive (This is the same link as the URL above.)

Output
D 4
.
.
.
A 3
.
Bb 3
.
R
.
Bb 3
.
A 3
.
D 3
.

R
.
F 3
.
E 3
.
Bb 3
.
A 3
.
D 4
.
C# 4
.
F 4
.

E 4
.
D 4
.
C# 4
.
A 3
.
R
.
Bb 3
A 3
Bb 3
.
D 3
.

R
.
Bb 3
A 3
Bb 3
.
C# 3
.
D 3
C# 3
D 3
.
E 3
.
F 3
.

This is a correct output for sample.mp3, not for problem.mp3. Submitting this sample output will result in WA.

In this sample output, an extra blank line is inserted after every $1$ measure ($16$ lines). In the judge of this problem, as long as a delimiter exists at each position of a line break or space in the output format and there is no delimiter between the letter and # or b, the number and type of delimiters do not matter.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。