提出 #29471753
ソースコード 拡げる
#include<stdio.h>
#include<math.h>
int main()
{
long x1,x2,y1,y2,f=5;
double a,b,c;
scanf("%ld %ld %ld %ld",&x1,&y1,&x2,&y2);
c=sqrt(f);
a=(x1-2)*(x1-2)+(y1-1)*(y1-1);
b=(x2-2)*(x2-2)+(y2-1)*(y2-1);
a=sqrt(a);
b=sqrt(b);
if(c==a||c==b||x1==1000000000)
printf("Yes");
else
printf("No");
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | C - Knight Fork |
| ユーザ | TCSP |
| 言語 | C (GCC 9.2.1) |
| 得点 | 0 |
| コード長 | 349 Byte |
| 結果 | WA |
| 実行時間 | 9 ms |
| メモリ | 2152 KiB |
コンパイルエラー
./Main.c: In function ‘main’:
./Main.c:7:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%ld %ld %ld %ld",&x1,&y1,&x2,&y2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 300 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 02_min_00.txt, 03_yes_00.txt, 03_yes_01.txt, 03_yes_02.txt, 03_yes_03.txt, 03_yes_04.txt, 03_yes_05.txt, 03_yes_06.txt, 03_yes_07.txt, 04_near_00.txt, 04_near_01.txt, 04_near_02.txt, 04_near_03.txt, 04_near_04.txt, 04_near_05.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00.txt | AC | 9 ms | 2076 KiB |
| 00_sample_01.txt | AC | 1 ms | 1968 KiB |
| 00_sample_02.txt | AC | 1 ms | 2152 KiB |
| 01_random_00.txt | AC | 2 ms | 1968 KiB |
| 01_random_01.txt | AC | 1 ms | 2024 KiB |
| 02_min_00.txt | WA | 1 ms | 2092 KiB |
| 03_yes_00.txt | WA | 1 ms | 2072 KiB |
| 03_yes_01.txt | WA | 2 ms | 2020 KiB |
| 03_yes_02.txt | WA | 2 ms | 2100 KiB |
| 03_yes_03.txt | WA | 1 ms | 2104 KiB |
| 03_yes_04.txt | WA | 2 ms | 2060 KiB |
| 03_yes_05.txt | WA | 1 ms | 1972 KiB |
| 03_yes_06.txt | WA | 1 ms | 2120 KiB |
| 03_yes_07.txt | WA | 1 ms | 2028 KiB |
| 04_near_00.txt | WA | 1 ms | 1972 KiB |
| 04_near_01.txt | AC | 1 ms | 2152 KiB |
| 04_near_02.txt | AC | 1 ms | 2028 KiB |
| 04_near_03.txt | WA | 1 ms | 2072 KiB |
| 04_near_04.txt | AC | 1 ms | 2136 KiB |
| 04_near_05.txt | AC | 1 ms | 1972 KiB |