結果

問題 No.441 和か積
ユーザー Maeda
提出日時 2025-03-11 11:05:09
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 24,448 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-11 11:05:11
合計ジャッジ時間 1,532 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
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("%lld %lld",&a,&b);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void){
	long long int a,b;
	scanf("%lld %lld",&a,&b);

	if(a+b < a*b){
		printf("P\n");
	}else if(a+b > a*b){
		printf("S\n");
	}else{
		printf("E\n");
	}
}
0