結果

問題 No.508 超ゆとり教育
ユーザー jokin_tokeijokin_tokei
提出日時 2017-09-15 15:39:50
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 30,592 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-25 11:30:27
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

// this program includes 508

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

void radius() {
	int n = 0;
	double r = 0, r_2 = 0;

	scanf("%d", &n);

	r_2 = n / 3;

	printf("%f\n", r_2);

	r = pow(r_2, 0.5);

	printf("%d", (int) r);

}

int main(void) {

	radius();

	return 0;
}
0