結果
| 問題 | No.773 コンテスト | 
| コンテスト | |
| ユーザー |  J31831276 | 
| 提出日時 | 2018-12-25 02:39:29 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 276 bytes | 
| コンパイル時間 | 517 ms | 
| コンパイル使用メモリ | 58,004 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-06 11:22:55 | 
| 合計ジャッジ時間 | 1,141 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
コンパイルメッセージ
main.cpp:7: warning: "NULL" redefined
    7 | #define NULL -1
      | 
In file included from /usr/include/stdio.h:33,
                 from /usr/include/c++/11/cstdio:42,
                 from /usr/include/c++/11/ext/string_conversions.h:43,
                 from /usr/include/c++/11/bits/basic_string.h:6608,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from main.cpp:1:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:392: note: this is the location of the previous definition
  392 | #define NULL __null
      | 
            
            ソースコード
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#define ll long long
#define NULL -1
using namespace std;
int main(){
   int a,b;
   cin>>a>>b;
   int ans=3;
   for(int i=a;i<=b;++i) if(i>=23&&i<=25) ans--;
   cout<<ans<<endl;
   return 0;
}
            
            
            
        