結果
| 問題 | 
                            No.306 さいたま2008
                             | 
                    
| コンテスト | |
| ユーザー | 
                             pengin_2000
                         | 
                    
| 提出日時 | 2022-04-15 16:53:53 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 191 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 24,960 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2025-02-14 12:18:04 | 
| 合計ジャッジ時間 | 1,014 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 26 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d %d", &xa, &ya);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d %d", &xb, &yb);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main()
{
	int xa, ya, xb, yb;
	scanf("%d %d", &xa, &ya);
	scanf("%d %d", &xb, &yb);
	xa *= -1;
	printf("%.20lf\n", ya - xa * (yb - ya) / (double)(xb - xa));
	return 0;
}
            
            
            
        
            
pengin_2000