AtCoder Beginner Contest 038 A - お茶 date: 2016-05-28 see also: https://beta.atcoder.jp/contests/abc038/tasks/abc038_a sedは楽しい #!/bin/sed -f s/.*T$/YES/ t s/.*/NO/