結果

問題 No.293 4>7の世界
ユーザー lonly
提出日時 2016-08-11 15:55:55
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 10:51:42
合計ジャッジ時間 832 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#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);
  }

  return 0;
}
0