← Back to List

15813번: 너의 이름은 몇 점이니? ↗

Solutions

C++14
170 B | 170 chars
#include <iostream>
#include <string>
using namespace std;
string a;
int N,S;
int main()
{
	cin>>N>>a;
	for(int x=0; x<a.length(); x++)
	{
		S+=a[x]-'A'+1;
	}
	cout<<S;
}