Created
June 27, 2021 12:06
-
-
Save sakapon/ffbb76d7119c7810363ae8de3902f2be to your computer and use it in GitHub Desktop.
競プロ典型 90 問 / Q074
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
class Q074 | |
{ | |
static void Main() | |
{ | |
Console.ReadLine(); | |
Console.WriteLine(Console.ReadLine().Select((c, i) => (c - 'a') * (1L << i)).Sum()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://atcoder.jp/contests/typical90/submissions/23823602