跳到正文

Willowchant_gpr_ts

2218255

oh no上海线下赛报不上名!

在洛谷打开
资料、奖项与版本

资料

编号
2218255
抓取

塔罗_Tarot

C++
#include <bits/stdc++.h>
using namespace std;
int main() {
	cout << "__*Tarot*__" << endl;
	cout << "Welcome, human..." << endl;
	cout << "      zzz        " << endl;
	cout << "Never fear, Earth citizen" << endl;
	cout << "Destiny IS destiny" << endl;
	cout << "But if I can calculate everything...Choose yourself" << endl;
	cout << "Must have fallen into the depths of a game...Tell me what you desire" << endl;
	string n[22] = {
		"The Fool", 
		"The Magician",
		"The High Priestess",
		"The Empress",
		"The Emperor",
		"The Hierophant",
		"The Lovers",
		"The Chariot",
		"Strength",
		"The Hermit",
		"Wheel of Fortune",
		"Justice",
		"The Hanged Man",
		"Death",
		"Temperance",
		"The Devil",
		"The Tower",
		"The Star",
		"The Moon",
		"The Sun",
		"Judgement",
		"The World"
	};
	string m[22] = {
		"New beginnings, innocence, spontaneity",
		"Manifestation, resourcefulness, power",
		"Intuition, sacred knowledge, divine feminine",
		"Fertility, beauty, nature, abundance",
		"Authority, structure, control, fatherhood",
		"Tradition, conformity, morality, ethics",
		"Love, harmony, relationships, values alignment",
		"Direction, control, willpower, success",
		"Courage, inner strength, patience, control",
		"Soul-searching, introspection, being alone",
		"Good luck, karma, life cycles, destiny",
		"Justice, fairness, truth, cause and effect",
		"Pause, surrender, letting go, new perspectives",
		"Endings, change, transformation, transition",
		"Balance, moderation, patience, purpose",
		"Shadow self, attachment, restriction",
		"Sudden change, upheaval, chaos, revelation",
		"Hope, faith, purpose, renewal, spirituality",
		"Illusion, fear, anxiety, subconscious, intuition",
		"Positivity, fun, warmth, success, vitality",
		"Judgement, rebirth, inner calling, absolution",
		"Completion, integration, accomplishment, travel"
	};
	string q;
	cout << "> What is your question? Think of it in your mind as you type. I shall give you the result....";
	getline(cin, q);
	int l;
	l = q.size();
	cout << " Your Reading (Past · Present · Future) ===" << endl;
	int j;
	int k;
	for (j = 0; j < 3; j++)
	{
		k = (l + j * 5) % 22;
		cout << j + 1 << ". " << n[k] << endl;
		cout << "   Meaning: " << m[k] << endl;
	}
	cout << "The cards have spoken. But remember: you still hold your choice." << endl;
	return 0;
	//argh
}

捏

共 1 篇
  1. 题解

    B4123 | 检票题解

    该题要求将乘客的登机时间分为紧急(≤15分钟)和非紧急两类,分别存储后按顺序输出。解法思路为:使用两个数组分别保存紧急与非紧急时间,遍历输入数组进行分类,最后先输出紧急数组再输出非紧急数组。代码中通过双重循环实现分类存储,并注意输出时每个元素后添加空格。