提出 #65938788


ソースコード 拡げる

// 綺麗に解きなおし

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

/////////////////// メイン ///////////////////

int main () {
  
  //////////////////// 入力 ////////////////////

  // まず、整数型変数を4つ用意し、入力を受け取る
  int a, b, c, d;
  cin >> a >> b >> c >> d;

  //////////////////// 処理 ////////////////////

  // 全部を分に変換して比較
  if (a*60+b>c*60+d) {

    // 条件を満たす場合の出力
    cout << "Yes" << endl;

  // そうではない場合
  } else {

    // 条件を満たさない場合の出力
    cout << "No" << endl;

  }

  //////////////////// 終了 ////////////////////

  return 0;

}

提出情報

提出日時
問題 A - Not Acceptable
ユーザ wightou
言語 C++ 23 (gcc 12.2)
得点 100
コード長 718 Byte
結果 AC
実行時間 1 ms
メモリ 3700 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 24
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 3504 KiB
example_01.txt AC 1 ms 3492 KiB
example_02.txt AC 1 ms 3516 KiB
hand_00.txt AC 1 ms 3564 KiB
hand_01.txt AC 1 ms 3556 KiB
hand_02.txt AC 1 ms 3700 KiB
hand_03.txt AC 1 ms 3548 KiB
hand_04.txt AC 1 ms 3560 KiB
hand_05.txt AC 1 ms 3508 KiB
random_00.txt AC 1 ms 3560 KiB
random_01.txt AC 1 ms 3560 KiB
random_02.txt AC 1 ms 3492 KiB
random_03.txt AC 1 ms 3560 KiB
random_04.txt AC 1 ms 3516 KiB
random_05.txt AC 1 ms 3536 KiB
random_06.txt AC 1 ms 3560 KiB
random_07.txt AC 1 ms 3496 KiB
random_08.txt AC 1 ms 3556 KiB
random_09.txt AC 1 ms 3556 KiB
random_10.txt AC 1 ms 3540 KiB
random_11.txt AC 1 ms 3496 KiB
random_12.txt AC 1 ms 3512 KiB
random_13.txt AC 1 ms 3536 KiB
random_14.txt AC 1 ms 3516 KiB