結果

問題 No.138 化石のバージョン
ユーザー 0w1
提出日時 2016-11-19 23:55:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 1,672 ms
コンパイル使用メモリ 166,996 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 06:29:40
合計ジャッジ時間 2,736 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

signed main(){
  string ans[] = { "NO", "YES" };
  string v1, v2; cin >> v1 >> v2;
  if( v1[ 0 ] != v2[ 0 ] )
    cout << ans[ v2[ 0 ] <= v1[ 0 ] ] << endl;
  else if( v1[ 2 ] != v2[ 2 ] )
    cout << ans[ v2[ 2 ] <= v1[ 2 ] ] << endl;
  else if( v1[ 4 ] != v2[ 4 ] )
    cout << ans[ v2[ 4 ] <= v1[ 4 ] ] << endl;
  else
    cout << "YES" << endl;
  return 0;
}
0