CODE FESTIVAL 2017 qual A: A - Snuke’s favorite YAKINIKU date: 2017-10-03 see also: https://beta.atcoder.jp/contests/code-festival-2017-quala/tasks/code_festival_2017_quala_a implementation これは本番でもsed一択 #!/bin/sed -f /^YAKI/cYes cNo