結果

問題 No.779 Heisei
コンテスト
ユーザー umezo
提出日時 2026-10-24 15:41:25
言語 C++23
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 787µs
コード長 662 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,547 ms
コンパイル使用メモリ 332,464 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2026-10-24 15:41:30
合計ジャッジ時間 4,077 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:20:27: warning: narrowing conversion of 'y' from 'unsigned int' to 'int' [-Wnarrowing]
   20 |   year_month_day ymd{year{y},month{m},day{d}};
      |                           ^

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
using namespace std;
using namespace std::chrono;

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rrep(i,n) for(int i=(int)(n-1);i>=0;i--)
#define ALL(v) v.begin(),v.end()
#define RALL(v) v.rbegin(),v.rend()
template <class T> using V=vector<T>;
template <class T> using VV=V<V<T>>;
using u128=__int128_t;
using ll=long long;
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  unsigned y,m,d;
  cin>>y>>m>>d;
  year_month_day ymd{year{y},month{m},day{d}};
  auto l=year{1989}/month{1}/day{8};
  auto r=year{2019}/month{4}/day{30};
  if(l<=ymd && ymd<=r) cout<<"Yes\n";
  else cout<<"No\n";
    
  return 0;
}
0