結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2025-03-11 11:04:51 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 181 bytes |
コンパイル時間 | 650 ms |
コンパイル使用メモリ | 24,832 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-11 11:04:53 |
合計ジャッジ時間 | 2,092 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 16 WA * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] 5 | scanf("%d %d",&a,&b); | ~^ ~~ | | | | int * long long int * | %lld main.c:5:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] 5 | scanf("%d %d",&a,&b); | ~^ ~~ | | | | int * long long int * | %lld main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d %d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ long long int a,b; scanf("%d %d",&a,&b); if(a+b < a*b){ printf("P\n"); }else if(a+b > a*b){ printf("S\n"); }else{ printf("E\n"); } }