結果

問題 No.2312 Turtleman and Gaming Console
ユーザー ruthen71
提出日時 2023-05-20 19:09:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 66,620 KB
最終ジャッジ日時 2025-02-13 03:49:27
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    string A, B;
    cin >> A >> B;
    int ok = 0;
    for (int i = 0; i < N; i++) ok |= A[i] == 'o' and B[i] == 'o';
    cout << (ok ? "Lucky Turtleman" : "Unlucky Turtleman") << '\n';
    return 0;
}
0