結果
| 問題 |
No.508 超ゆとり教育
|
| コンテスト | |
| ユーザー |
jokin_tokei
|
| 提出日時 | 2017-09-15 15:42:49 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 340 bytes |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 30,336 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 22:51:24 |
| 合計ジャッジ時間 | 722 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
// 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);
if (r > 0) {
printf("%d", (int) r);
}
else{
printf("%d", 1);
}
}
int main(void) {
radius();
return 0;
}
jokin_tokei