結果

問題 No.2628 Shrinkage
コンテスト
ユーザー chro_96
提出日時 2024-02-16 23:14:52
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 747 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 182 ms
コンパイル使用メモリ 38,208 KB
最終ジャッジ日時 2026-02-22 11:30:04
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>

int main () {
  int t = 0;
  long long x1 = 0LL;
  long long y1 = 0LL;
  long long x2 = 0LL;
  long long y2 = 0LL;
  
  int res = 0;
  
  res = scanf("%d", &t);
  while (t > 0) {
    long long ax = 0LL;
    long long ay = 0LL;
    long long bx = 0LL;
    long long by = 0LL;
    res = scanf("%lld", &x1);
    res = scanf("%lld", &y1);
    res = scanf("%lld", &x2);
    res = scanf("%lld", &y2);
    ax = x2-x1;
    ay = y2-y1;
    res = scanf("%lld", &x1);
    res = scanf("%lld", &y1);
    res = scanf("%lld", &x2);
    res = scanf("%lld", &y2);
    bx = x2-x1;
    by = y2-y1;
    if (ax*by == bx*ay && ax*ax+ay*ay > bx*bx+by*by) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
    t--;
  }
  
  return 0;
}
0