結果

問題 No.138 化石のバージョン
ユーザー keisuke6keisuke6
提出日時 2022-08-15 13:22:30
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 2,705 ms
コンパイル使用メモリ 243,468 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-02 01:44:27
合計ジャッジ時間 3,755 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  string S,T;
  cin>>S>>T;
  int a = (S[0]-'0')*100+(S[2]-'0')*10+(S[4]-'0');
  int b = (T[0]-'0')*100+(T[2]-'0')*10+(T[4]-'0');
  if(b <= a) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}
0