結果

問題 No.293 4>7の世界
ユーザー Hank
提出日時 2016-06-08 14:04:14
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 19,968 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 03:00:41
合計ジャッジ時間 1,150 ms
ジャッジサーバーID
(参考情報)
judge2 / 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("%ld %ld",&A,&B);
      |   ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
  long A,B,buff;
  scanf("%ld %ld",&A,&B);

  if(B>A){
    buff = B ;
    B = A;
    A = buff;
  }

  if((A==7)&&(B==4)){
    printf("4\n");
  }
  else printf("%ld\n",A);
  
  
  return 0;
}
0