結果

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

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>

int main(void){
	int gx,gy;
	scanf("%d %d",&gx,&gy);
	if(abs(gx) == abs(gy)){
		printf("1");
	}
	else{
		printf("2");
	}
}
0