結果
| 問題 | No.2515 Similar Triangles |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-11 16:43:42 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 1,605 ms |
| コンパイル使用メモリ | 27,776 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-11 16:43:45 |
| 合計ジャッジ時間 | 1,626 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
//No.2515 Similar Triangles
#include <stdio.h>
#include <stdlib.h>
int main(void){
int x1, y1, x2, y2, x3;
scanf("%d %d %d %d %d", &x1, &y1, &x2, &y2, &x3);
int S1 = abs(x3 * y1 * 1/2);
int S2 = abs(x3 * y2 * 1/2);
if(S1 == S2){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}