結果
| 問題 |
No.1412 Super Ryuo
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-26 11:05:40 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 23,936 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-26 11:05:42 |
| 合計ジャッジ時間 | 1,426 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d %d %d",&a,&b,&c,&d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
void main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(c-a <= 2 && c-a >= -2 && d-b <= 2 && d-b >= -2 || a == c || b == d){
printf("1");
}else{
printf("2");
}
}
Maeda