結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2016-12-12 20:59:45 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 366 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 17:55:11 |
| 合計ジャッジ時間 | 1,596 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 17 WA * 13 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%lld%lld",&a,&b);
| ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void)
{
unsigned long long a;
unsigned long long b;
unsigned long long c;
unsigned long long d;
scanf("%lld%lld",&a,&b);
if(a*b>a+b){
printf("P\n");
}else if(a*b<a+b){
printf("S\n");
}else if(a*b==a+b){
printf("E\n");
}
return 0;
}
Haijinn