結果

問題 No.138 化石のバージョン
ユーザー satanic
提出日時 2015-11-29 22:23:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 572 bytes
コンパイル時間 493 ms
コンパイル使用メモリ 54,336 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 13:39:59
合計ジャッジ時間 1,548 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

#define READandIGNORE(a) {cin >> a; cin.ignore();}
#define SAY(s)           {cout << s << "\n";}

int main(){
  ios::sync_with_stdio(false);
  int a0, b0, c0, a1, b1, c1;

  READandIGNORE(a0);
  READandIGNORE(b0);
  READandIGNORE(c0);
  READandIGNORE(a1);
  READandIGNORE(b1);
  READandIGNORE(c1);
  
  if(a0 >  a1) {SAY("YES") return 0;}
  if(a0 <  a1) {SAY("NO")  return 0;}
  if(b0 >  b1) {SAY("YES") return 0;}
  if(b0 <  b1) {SAY("NO")  return 0;}
  if(c0 >= c1) {SAY("YES") return 0;}
  if(c0 <  c1) {SAY("NO")  return 0;}
}
0