提出 #44347622
ソースコード 拡げる
Copy
Copy
- #include <stdio.h>
- #include <math.h>
- int main(void) {
- int a, b, c;
- char s[1024];
- if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1;
- printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s);
- return 0;
- }
#include <stdio.h>
#include <math.h>
int main(void) {
int a, b, c;
char s[1024];
if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1;
printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s);
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | PracticeA - Welcome to AtCoder |
| ユーザ | mikecat |
| 言語 | C (gcc 12.2.0) |
| 得点 | 0 |
| コード長 | 234 Byte |
| 結果 | CE |
コンパイルエラー
/usr/bin/ld: /tmp/cc8VpyJz.o: in function `main': Main.c:(.text.startup+0x8b): undefined reference to `sqrt' collect2: error: ld returned 1 exit status