結果

問題 No.3108 Luke or Bishop
ユーザー issaimaru
提出日時 2025-04-18 20:49:03
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 1,472 ms
コンパイル使用メモリ 24,320 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-04-18 20:49:05
合計ジャッジ時間 1,102 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%d %d",&g_x,&g_y);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
int main(void){
    // Your code here!
    int g_x,g_y;
    scanf("%d %d",&g_x,&g_y);
    
    
    if(abs(g_x) == abs(g_y)){
        printf("1");
    }else{
        printf("2");
    }
    
}
0