結果

問題 No.2312 Turtleman and Gaming Console
ユーザー yicode
提出日時 2023-05-22 12:57:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 1,869 ms
コンパイル使用メモリ 166,088 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-28 14:48:00
合計ジャッジ時間 2,678 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
using ll = long long;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
  int N; cin >> N;
  string A; cin >> A;
  string B; cin >> B;
  bool fire = false;
  for(int i = 0; i < N; i++) {
    if(A[i] == 'o' && B[i] == 'o') {
      fire = true;
    }
  }
  if(fire) cout << "Lucky Turtleman" << endl;
  else cout << "Unlucky Turtleman" << endl;
}
0