結果
問題 |
No.293 4>7の世界
|
ユーザー |
|
提出日時 | 2016-08-11 16:03:04 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 10:51:48 |
合計ジャッジ時間 | 882 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 16 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lld %lld", &A, &B); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ long long int A, B; scanf("%lld %lld", &A, &B); if(A == 4 && B == 7){ printf("%lld", A); }else if(A == 7 && B == 4){ printf("%lld", B); }else if(A > B){ printf("%lld", A); }else if(A < B){ printf("%lld", B); }else{ printf("%lld",A); } return 0; }