회원가입
로그인
Toggle navigation
문제
문제
전체 문제
문제 출처
단계별로 풀어보기
알고리즘 분류
추가된 문제
문제 순위
문제
푼 사람이 한 명인 문제
아무도 못 푼 문제
최근 제출된 문제
최근 풀린 문제
랜덤
출처
ICPC
Olympiad
한국정보올림피아드
한국정보올림피아드시․도지역본선
전국 대학생 프로그래밍 대회 동아리 연합
대학교 대회
카카오 코드 페스티벌
Coder's High
ICPC
Regionals
World Finals
Korea Regional
Africa and the Middle East Regionals
Europe Regionals
Latin America Regionals
North America Regionals
South Pacific Regionals
문제집
대회
2
채점 현황
랭킹
게시판
그룹
더 보기
재채점 기록
블로그
강의
실험실
도움말
BOJ Stack
BOJ Book
전체
공지
자유
질문
오타/오역/요청
게시판 공지
홍보
업데이트
solved.ac
글쓰기
질문 도움말
자주묻는 질문
c++ 게임 "mathtale"
supercom
6년 전
0
게임 진행: enter
enter을 쳤는데도 진행이 안될시
위에있는 문장을 다시한번 읽어보고 답을 써넣기
댓글 / 평가 부탁드려요^^
(그냥 계산기 사용해서 깨세요)
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> #include <conio.h> #include <algorithm> #include <string.h> int tri() { srand(time(NULL)); printf("timetimetimetimetimetimetimetimetimetimetimetime\n\n"); printf("...\n"); printf("...\n"); printf("...\n");getche(); printf("앗! 죽음의 트랭귤러가 나타났다!\n\n");getche(); int a,b; a=rand()%100; b=rand()%100; printf("죽음의 트랭귤러가 죽음의 배틀을 걸어왓다!\n\n");getche(); printf("트랭귤러:나는 죽음이다!!!\n\n");getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); int dap; scanf("%d", &dap); printf("나: 답은 이것이다 이 삼각형 괴물아!\n\n");getche(); if(dap==a+b){ printf("트랭귤러:하...하하..하하하..\n\n");getche(); printf("트랭귤러:난 과거에 묻힌 나그네일 뿐이라고..\n\n");getche(); return 1; } else{ printf("트랭귤러:하..하하..하하하..\n\n"); getche();printf("트랭귤러:시간이 기뻐 하겠군..\n\n");getche(); return 0; } } int rec() { srand(time(NULL)); printf("timetimetimetimetimetimetimetimetimetimetimetime\n\n"); printf("...\n");getche(); printf("...\n");getche(); printf("...\n");getche(); int ra=rand()%50; printf("앗! 혼돈의 렉랭귤러가 나타났다!\n\n"); getche(); int dap; int a=rand()%1000; int b=rand()%1000; printf("혼돈의 렉랭귤러가 죽음의 배틀을 걸어왓다!\n\n"); getche(); printf("렉텡귤러:혼돈을 막을 사람은 없다!!!\n\n"); getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 사각형 괴물아!\n\n"); getche(); if(dap==a+b){ printf("승리를 거뒀다!\n\n"); getche(); int x=0; printf("대사를 말하고 싶다면 0과 1중 아무 키나 누르십시오.\n\n"); scanf("%d", &x); if(x==1){ printf("나: 내가 너의 혼돈을 막았다!\n\n"); getche(); } else {printf("나: 혼돈은 뭐가 혼돈이라는 거야.. 푸흡!\n\n");getche();} printf("렉랭귤러:하..하하..하하하..\n\n"); getche(); printf("렉텡귤러:시간은 아무도 막을 수 없다고들 하지.\n\n");getche(); printf("자비...1 처형...0\n\n"); return 1; } else{ printf("렉텡귤러:하..하하..하하하...\n\n");getche(); printf("렉텡귤러:시간이 기뻐 하겠군....\n\n");getche(); return 0; } } int pen() { printf("timetimetimetimetimetimetimetimetimetimetimetime\n\n"); printf("...\n");getche(); printf("...\n");getche(); printf("...\n");getche(); printf("앗! 화염의 펜타킬러가 나타났다!\n\n");getche(); int a=(rand()%1000)+100; int b=(rand()%1000)+100; printf("화염의 펜타킬러가 죽음의 배틀을 걸어왔다!\n\n");getche(); printf("펜타킬러:내 화염을 막아 보시지!!!\n\n");getche(); int dap; printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 오각형 괴물아!\n\n");getche(); if(dap==a+b){ printf("펜타킬러: 아직이다! 나는 체력이 반이나 남아있는데 너는 어떨까..?!\n\n");getche(); a=(rand()%10000)+1000; b=(rand()%10000)+1000; printf("펜타킬러:이번에도 버틸 수 있을까?!\n\n");getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 오각형 괴물아!\n\n");getche(); } if(dap==a+b){ printf("승리를 거뒀다!\n\n");getche(); int x=0; printf("대사를 말하고 싶다면 0, 1, 2중 아무 키나 누르십시오.\n\n"); scanf("%d", &x); if(x==0){ printf("나: 화염공격, 별거 아니군!!\n\n");getche(); } if(x==1){ printf("네 불에 네가 타 죽은 꼴이 되었군.\n\n");getche(); } else printf("펜타킬러에게 비웃음을 날렸다.\n\n");getche(); printf("펜타킬러:하..하하..하하하...\n\n");getche(); printf("나는 여기에 잠시 머무르는 뜨거운 불일 뿐, 조금 있으면 꺼질 것이지.\n\n");getche(); return 1; } else{ printf("펜타킬러:시간이 기뻐 하겠군..\n\n");getche(); return 0; } } int main() { int zabi=0, kill=0; srand(time(NULL)); printf("입장하시겠습니까..?!\n");int yesno; printf("예...1 아니요...0\n");scanf("%d", &yesno); if(yesno==0) return 0; if(yesno!=-1){ printf("...\n"); getche(); printf("...\n"); getche(); printf("...\n"); getche(); printf("앗! 죽음의 트랭귤러가 나타났다!\n\n"); getche(); int a,b; a=rand()%100; b=rand()%100; printf("죽음의 트랭귤러가 죽음의 배틀을 걸어왓다!\n\n"); getche(); printf("트랭귤러:나는 죽음이다!!!\n\n"); getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); int dap; scanf("%d", &dap); printf("나: 답은 이것이다 이 삼각형 괴물아!\n\n"); if(dap==a+b){ printf("승리를 거뒀다!\n\n"); getche(); printf("살려줄 것입니까?\n\n"); getche(); printf("자비...1 처형...0\n\n"); int e=0; scanf("%d", &e); if(e==1){ zabi++; printf("죽음의 트랭귤러를 살려주었다!\n\n"); getche(); } else {kill++;printf("죽음의 트랭귤러를 없애버렸다!\n\n");getche();} } else{ printf("당신은 트랭귤러에게 당했다!\n\n"); getche(); printf("필드에서 쫓겨났다.\n\n"); getche(); main(); return 0; } a=0;b=0; printf("...\n");getche(); printf("...\n");getche(); printf("...\n");getche(); int ra=rand()%50; printf("앗! 혼돈의 렉랭귤러가 나타났다!\n\n"); getche(); a=rand()%1000; b=rand()%1000; printf("혼돈의 렉랭귤러가 죽음의 배틀을 걸어왓다!\n\n"); getche(); printf("렉텡귤러:혼돈을 막을 사람은 없다!!!\n\n"); getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 사각형 괴물아!\n\n"); getche(); if(dap==a+b){ printf("승리를 거뒀다!\n\n"); getche(); int x=0; printf("대사를 말하고 싶다면 0과 1중 아무 키나 누르십시오.\n\n"); scanf("%d", &x); if(x==1){ printf("나: 내가 너의 혼돈을 막았다!\n\n"); getche(); } else {printf("나: 혼돈은 뭐가 혼돈이라는 거야.. 푸흡!\n\n");getche();} printf("렉랭귤러: 차라리 나를 죽여라!\n\n"); getche(); printf("살려줄 것입니까?\n\n");getche(); printf("자비...1 처형...0\n\n"); int e=0; scanf("%d", &e); if(e==1){ zabi++; printf("혼돈의 렉텡귤러를 살려주었다!\n\n");getche(); } else {kill++;printf("죽음의 트랭귤러를 없애버렸다!\n\n");getche();} } else{ printf("당신은 렉텡귤러에게 당했다!\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } printf("...\n"); getche(); printf("...\n"); getche(); printf("...\n"); getche(); ra=rand()%2; for(int i=0; i<ra; i++){ printf("...\n");getche(); } printf("앗! 화염의 펜타킬러가 나타났다!\n\n");getche(); a=(rand()%1000)+100; b=(rand()%1000)+100; printf("화염의 펜타킬러가 죽음의 배틀을 걸어왓다!\n\n");getche(); printf("펜타킬러:내 화염을 막아 보시지!!!\n\n");getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 오각형 괴물아!\n\n");getche(); if(dap==a+b){ printf("펜타킬러: 아직이다! 나는 체력이 반이나 남아있는데 너는 어떨까..?!\n\n");getche(); a=(rand()%10000)+1000; b=(rand()%10000)+1000; printf("펜타킬러:이번에도 버틸 수 있을까?!\n\n");getche(); printf("%d + %d = ?!?!?!?!\n\n",a,b); scanf("%d", &dap); printf("나: 답은 이것이다 이 오각형 괴물아!\n\n");getche(); } if(dap==a+b){ printf("승리를 거뒀다!\n\n");getche(); int x=0; printf("대사를 말하고 싶다면 0, 1, 2중 아무 키나 누르십시오.\n\n"); scanf("%d", &x); if(x==0){ printf("나: 화염공격, 별거 아니군!!\n\n");getche(); } if(x==1){ printf("네 불에 네가 타 죽은 꼴이 되었군.\n\n");getche(); } else printf("펜타킬러에게 비웃음을 날렸다.\n\n");getche(); printf("펜타킬러:다음을 기약하지. 꼭 이겨줄테다!\n\n");getche(); printf("살려줄 것입니까?\n\n");getche(); printf("자비...1 처형...0\n\n"); int e=0; scanf("%d", &e); if(e==1){ zabi++; printf("화염의 펜타킬러를 살려주었다!\n\n");getche(); } else {kill++;printf("화염의 펜타킬러를 없애버렸다!\n\n");getche();} } else{ printf("당신은 펜타킬러에게 당했다!\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } } zabi=1,kill=1; int ra=rand()%50; for(int i=0; i<ra*10; i++) printf("...\n"); printf("무언가 기운이 심상치 않다.\n\n");getche(); printf("막다른 길인 것 같다.\n\n");getche(); printf("...\n...\n...\n...\n");getche(); if(zabi==3){ printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1\n"); printf("앗!!관대한 테크서클이 나타났다.\n");getche(); printf(" 00\n"); printf(" 0 0\n"); printf(" 0. .0\n"); printf(" 0 __ 0\n"); printf(" 0 0\n"); printf(" 00\n");getche(); printf("지금까지 내 친구들과 같이 놀아주고 놓아주었군.\n\n");getche(); printf("나와도 놀아주지 않겠어..?!?!?!\n\n");getche(); int circlejabi=5; int a=10+(rand()%100); int b=(rand()%10000)+9000; printf(" 11\n"); printf(" 1 1\n"); printf(" 1. .1\n"); printf(" 1 ~~ 1\n"); printf(" 1 1\n"); printf(" 11\n");getche(); printf("-테크서클-원형 음파!!!\n\n");getche(); printf("%d+%d==?!?!?!?!\n", a, b); int playerdap;scanf("%d", &playerdap); if(playerdap==a+b){ printf("대단한걸.이 공격을 가볍게 무시할 줄이야.\n\n");getche(); while(1){ if(circlejabi!=1){ printf("...\n...\n...\n...\n");getche(); printf(" 00\n"); printf(" 0 0\n"); printf(" 0. .0\n"); printf(" 0 __ 0\n"); printf(" 0 0\n"); printf(" 00\n"); getche(); printf("이 공격은 어떨까?!?!\n...\n");getche(); printf(" 11\n"); printf(" 1 1\n"); printf(" 1. .1\n"); printf(" 1 ~~ 1\n"); printf(" 1 1\n"); printf(" 11\n");getche(); printf("-테크서클-테크놀로지 서클링!!!\n\n");getche(); a=rand()%100; int pie=rand()%10; printf("%d * %d = ?!?!?!?!\n", a, pie); scanf(" %d", &playerdap); if(playerdap!=pie*a){ printf("당신은 관대한 테크서클에게 당했다!\n\n어딘가에서 웃는 소리가 들려온다.\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } else { printf("자비...1 공격...0\n"); int n; scanf("%d", &n); if(n==1){ printf("내 공격을 그렇게 피하면서도 자비를 베풀겠다고?!\n\n");getche(); circlejabi--; } } } else{ printf("...\n...\n...\n...\n");getche(); printf(" 00\n"); printf(" 0 0\n"); printf(" 0. .0\n"); printf(" 0 __ 0\n"); printf(" 0 0\n"); printf(" 00\n");getche(); printf("대체 왜 이러는 거냐고..\n\n");getche();printf("나는 너를 없애려 했는데 너는 나에게 자비를 베풀다니!\n\n");getche(); printf("제발 그러지 마!!\n\n");getche(); printf("-테크서클-디멘션 하이라이트 서클!!!\n\n");getche(); a=rand()%10; b=rand()%10; printf("%d * %d = ?!?!?!?!\n\n", a, b); scanf("%d", &playerdap); if(playerdap!=b*a){ printf("당신은 관대한 테크서클에게 당했다!\n\n어딘가에서 웃는 소리가 들려온다.\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } else { printf("자비...1 공격...0\n"); int n; scanf("%d", &n); if(n==1 && circlejabi!=1){ printf("내 공격을 그렇게 피하면서도 자비를 베풀겠다고?!\n\n");getche(); circlejabi--; } else if(n==1 && circlejabi==3){ printf("하! 자비를 베풀어서 나를 설득시키려는 건가..?\n\n");getche(); printf("웃기군.\n\n");getche();printf("허튼수작에 내가 넘어갈 것이라고 생각하지 말라고!\n\n");getche(); } else if(n==1 && circlejabi==2){ printf("내 눈앞에서 사라져버려!!\n\n");getche(); printf("왜 이렇게 끈질기게 나를 설득시키려는 거야..?!?!\n\n");getche(); } else if(n==1 && circlejabi==1){ printf(" 00\n"); printf(" 0 0\n"); printf(" 0. .0\n"); printf(" 0 __ 0\n"); printf(" 0 0\n"); printf(" 00\n");getche(); printf("내가...졌다...\n\n너의 그 끈기와 의지에 감명받았다.\n\n");getche(); printf("대담..아무 키나 누르십시오.\n"); int z;scanf("%d", &z); printf("나:...\n");getche(); printf("테크서클이 긴 여운을 남기며 사라졌다.\n");getche(); printf("..........................................\n");getche(); printf("end of mathtale\n");getche(); return 0; } } } } } else{ printf("당신은 관대한 테크서클에게 당했다!\n\n어딘가에서 웃는 소리가 들려온다.\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } } if(zabi!=3 && kill!=3){ int atk=1; printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");getche(); printf("앗! 기록의 라그니쳬가 나타났다!!\n\n");getche(); printf(" 0 0 \n"); printf(" _ \n\n");getche(); printf("하...하하...하하하...하하하하...하하하하하\n\n");getche(); printf("너가 생각도 못한 공격을 준비했어!\n\n");getche(); printf("1+1=?!?!?!\n"); int a;scanf("%d", &a); if(a!=2){ printf("당신은 기록의 라그니쳬에게 당했다!\n\n어딘가에서 낄낄 웃는 소리가 들려온다.\n\n");getche(); printf("필드에서 쫓겨났다\n\n");getche(); main(); return 0; } else{ printf("재밌군...\n하...하하...하하하...하하하하...하하하하하\n\n");getche(); printf(" 0 0 \n"); printf(" _ \n\n");getche(); printf("잠깐. 설마 이게 끝이라고 생각한 건 아니겠지.\n\n");getche(); printf("내가 왜 기록의 라그니쳬인 줄은 아는가..?!?!\n\n");getche(); printf("타임 어택-백트랙 포스!!\n\n");getche(); while(atk!=0){ srand(time(NULL)); int nansu=(rand()%10)+1; int qreturn; if(nansu%3==0){ qreturn=tri(); } if(nansu%3==1){ qreturn=rec(); } if(nansu%3==2){ qreturn=pen(); } printf("timetimetimetimetimetimetimetimetimetimetimetime\n\n");getche(); if(qreturn==0){ printf("당신은 기록의 라그니쳬에게 당했다!\n\n어딘가에서 낄낄 웃는 소리가 들려온다.\n\n");getche(); printf("필드에서 쫓겨났다...\n\n");getche(); main(); return 0; } else if(qreturn==1 && atk!=1){ printf(" 0 0 \n"); printf(" _ \n\n");getche(); if(atk==2){ printf("하.. 끝까지 해보겠다는 건가..?\n\n"); } printf("용케 다시 돌아왔군.\n\n");getche(); printf("꼭 돌아오는 것만이 좋은 것이 아닐 텐데..\n\n나와 함께 이 시간속에 영원히 갇히고 싶은 거냐..?\n\n");getche(); printf("타임 어택-백트랙 포스!!\n\n");getche(); } atk--; } printf(" 0 0 \n"); printf(" _ \n\n");getche(); printf("끝까지 해보자..\n\n");getche(); printf("타임어택-백트렉 포스!!\n\n");getche(); printf("timetimetimetimetime\n\n");getche(); printf("뭐..뭐야..?왜 안되는거지?\n\n");getche(); printf("이제 다시 각오해라!!\n\n");getche(); printf("timetimetimetimetim\n\n");getche(); printf("젠장! 이게 어떻게 된 거야..?!?!?!\n\n");getche(); printf("...\n...\n...\n");getche(); printf("기록의 라그니쳬가 당황했다.\n\n");getche(); while(1){ printf("자비...1 공격...2 도망...3\n\n"); int a;scanf("%d", &a); if(a==1){printf("자비 따위 바라지도 않는다!!\n\n");getche();} if(a==2){printf("하! 이 상황에 나에게 공격이라고..?!?!\n\n라그니쳬는 가볍게 공격을 피했다.\n\n");getche();} if(a==3){ printf(" 0 0 \n"); printf(" ㅁ \n\n");getche(); printf("잠깐!! 너 어디 가는 거야..!!!\n\n");getche(); printf("내 이야기를 좀 들어 보고 가라고!!\n\n");getche(); printf("들어 보시겠습니까? 예..1 아니오..2\n\n"); int playeryn; scanf("%d", &playeryn); if(playeryn==1){ printf("기록이라는 능력은 참 재밌는 것이지..\n\n");getche(); printf("과거와 현재를 마음대로 하는 능력...\n\n");getche(); printf("그런 의미에서 나와 함께 처음으로 돌아가지 않겠니..?!\n\n수락...1 거절...2\n\n"); scanf("%d",&playeryn); if(playeryn==1){ printf("하...하하...하하하...하하하하...하하하하하!!!\n\n넌 내 술수에 걸려들었다\n\n"); printf("이 게임을, 처음부터 다시 시작하는 거야!!!!\n\n\n\n"); main(); return 0; } if(playeryn!=1){ printf("절대 안 돼!! 여기서 나갈 순 없어!!!\n\n"); } } printf("안돼애애애애애애애애애애애애애애애애!!!!!!!\n\n");getche(); printf("당신은 기록의 라그니쳬로부터 도망쳤다.\n\n");getche(); printf("---------------------------------------------------------\n\n"); getche(); printf("END OF MATHTALE\n"); return 0; } printf("이제 다시 각오해라!!\n\n");getche(); printf("timetimetimetimetim\n\n");getche(); printf("젠장! 이게 어떻게 된 거야..?!?!?!\n\n");getche(); } } } if(kill=3){ } return 0; }
leehosu01
6년 전
0
화이팅!
댓글을 작성하려면
로그인
해야 합니다.
supercom 6년 전
게임 진행: enter