結果

問題 No.773 コンテスト
ユーザー hirakich1000000007
提出日時 2018-12-19 19:56:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 287 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 23,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 11:19:23
合計ジャッジ時間 989 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 19 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%d%d", &a, &b);
      |     ~~~~~^~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(void){
    int fuck[100];
    int a, b;
    int x = 0;
    scanf("%d%d", &a, &b);
    while (a <= b) {
        fuck[a] = 1;
        a++;
    }
    
    if (!fuck[23]) x++;
    if (!fuck[24]) x++;
    if (!fuck[25]) x++;
    printf("%d\n", x);
    return 0;
}
0