Submission #12082896


Source Code Expand

Copy
void main() {
	auto R = readAs!real;
	writeln(2*R*PI);
}

// ===================================

import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;

T readAs(T)() if (isBasicType!T) {
	return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
	return readln.split.to!T;
}

T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
	auto res = new T[][](height, width);
	foreach(i; 0..height) {
		res[i] = readAs!(T[]);
	}
	return res;
}

T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
	auto res = new T[][](height, width);
	foreach(i; 0..height) {
		auto s = rs;
		foreach(j; 0..width) res[i][j] = s[j].to!T;
	}
	return res;
}

int ri() {
	return readAs!int;
}

double rd() {
	return readAs!double;
}

string rs() {
	return readln.chomp;
}

Submission Info

Submission Time
Task A - Circle Pond
User private_yusuke
Language D (DMD 2.091.0)
Score 100
Code Size 1083 Byte
Status AC
Exec Time 8 ms
Memory 3000 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 12
Set Name Test Cases
Sample s1.txt, s2.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
01.txt AC 8 ms 2920 KB
02.txt AC 2 ms 2892 KB
03.txt AC 2 ms 2928 KB
04.txt AC 2 ms 2816 KB
05.txt AC 2 ms 2856 KB
06.txt AC 2 ms 2908 KB
07.txt AC 2 ms 2808 KB
08.txt AC 2 ms 2972 KB
09.txt AC 2 ms 3000 KB
10.txt AC 2 ms 2992 KB
s1.txt AC 2 ms 2876 KB
s2.txt AC 3 ms 2984 KB