結果

問題 No.8069 Torn Documents
ユーザー risujiroh
提出日時 2020-04-01 22:20:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 304 bytes
コンパイル時間 1,646 ms
コンパイル使用メモリ 168,104 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-21 21:38:44
合計ジャッジ時間 5,146 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 12 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int si, sj;
  cin >> si >> sj;
  string s;
  cin >> s;
  if (count(begin(s), end(s), 'U') < si or count(begin(s), end(s), 'L') < sj) {
    cout << "-1\n";
    exit(0);
  }
  assert(false);
}
0