結果
問題 |
No.3108 Luke or Bishop
|
ユーザー |
|
提出日時 | 2025-04-18 20:51:24 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 638 ms |
コンパイル使用メモリ | 24,704 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-18 20:51:25 |
合計ジャッジ時間 | 1,084 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 WA * 1 |
コンパイルメッセージ
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); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#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) || g_x == 0 || g_y == 0){ printf("1"); }else{ printf("2"); } }