結果

問題 No.441 和か積
ユーザー Justinlam33
提出日時 2017-04-09 21:38:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 22,784 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 01:38:41
合計ジャッジ時間 1,027 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    4 | main(void){
      | ^~~~
main.cpp: In function ‘int main()’:
main.cpp:7:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 | scanf("%lf %lf",&a,&b);
      | ~~~~~^~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>


main(void){

double a,b;
scanf("%lf %lf",&a,&b);
(a+b>a*b)?printf("S\n"):(a+b==a*b)?printf("E\n"):printf("P\n");
}
0