結果

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

テストケース

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

ソースコード

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