Submission #19552


Source Code Expand

Copy
import std.conv;
import std.stdio;
import std.algorithm;
import std.string;

void main()
{
	readln;
	auto xs = replace(chomp(readln), "F", "E");
	auto rs = reduce!"a+b"(map!(x => 'A' - x + 4)(xs)) * 1.0 / xs.length;
	writeln(format("%.10f", rs));
}

Submission Info

Submission Time
Task A - GPA計算
User psihy
Language D (DMD 2.060)
Score 0
Code Size 261 Byte
Status CE

Compile Error

./Main.d(10): Error: undefined identifier replace, did you mean template emplace(T) if (!is(T == class))?