結果

問題 No.632 穴埋め門松列
ユーザー pekempey
提出日時 2018-01-19 22:07:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 67,316 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 12:33:51
合計ジャッジ時間 1,099 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>

using namespace std;

int main() {
  char a, b, c;
  cin >> a >> b >> c;

  if (a == '?') {
    if (b < c) cout << 4 << endl;
    else cout << 1 << endl;
  } else if (b == '?') {
    cout << 14 << endl;
  } else {
    if (b < c) cout << 1 << endl;
    else cout << 4 << endl;
  }
}
0