結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
tj_0612
|
| 提出日時 | 2016-11-18 00:30:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 173 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 03:29:07 |
| 合計ジャッジ時間 | 1,018 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 20 WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=]
5 | scanf("%d %d",&A,&B);
| ~^ ~~
| | |
| int * long int *
| %ld
main.c:5:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=]
5 | scanf("%d %d",&A,&B);
| ~^ ~~
| | |
| int * long int *
| %ld
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(){
long int A,B;
scanf("%d %d",&A,&B);
if(A+B>A*B)
printf("S\n");
else if(A+B==A*B)
printf("E\n");
else
printf("P\n");
return 0;
}
tj_0612