結果

問題 No.2736 About half
ユーザー kr
提出日時 2024-05-11 16:03:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 30,080 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-20 08:37:02
合計ジャッジ時間 1,008 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:9:11: warning: unknown escape sequence: '\N'
    9 |     scanf("%d\N",&B);
      |           ^~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    int A,B;
    printf("Aの値は:");
    scanf("%d\n",&A);
    printf("Bの値は:");
    scanf("%d\N",&B);

    if(A/B>2)
        {
            printf("Yes");
        }
    else if(B/A>2)
        {
            printf("Yes");
        }
    else
        {
            printf("No");
        }
    }
0