結果
| 問題 | No.2312 Turtleman and Gaming Console |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-17 11:46:13 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 408 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 38,976 KB |
| 最終ジャッジ日時 | 2026-02-22 13:15:58 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 30 |
ソースコード
#include <stdio.h>
#include <stdbool.h>
void main(void){
int n = 0;
scanf("%d",&n);
char game[1000] = "a";
scanf("%s",game);
char machine[1000] = "b";
scanf("%s",machine);
bool playableFlg = false;
for(int i = 0 ; i < n ; i++ ){
if(game[i] == machine[i] && machine[i] == 'o'){
playableFlg = true;
}
}
if(playableFlg){
printf("Lucky Turtleman");
}else{
printf("Unlucky Turtleman");
}
}
Maeda