結果

問題 No.2312 Turtleman and Gaming Console
ユーザー yansi819yansi819
提出日時 2024-03-19 08:51:25
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 4,026 ms
コンパイル使用メモリ 261,108 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-09-30 05:16:25
合計ジャッジ時間 5,092 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;

int N;
char A[110], B[110];
int main() {
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> A[i];
  for (int i = 1; i <= N; i++) cin >> B[i];
  for (int i = 1; i <= N; i++) {
    if (A[i] == 'o' && B[i] == 'o') {
      cout << "Lucky Turtleman" << endl;
      return 0;
    }
  }
  cout << "Unlucky Turtleman" << endl;
  return 0;
}
0