Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- #include<algorithm>
- #include<cstdlib>
- #include<ctime>
- using namespace std;
- int number=100;
- int v[105];
- int memo[105][105];
- char songs[105][105]={"",
- "Ghost",
- "Shut Up + Dance",
- "Bad Blood",
- "Marvin Gaye",
- "Jealous",
- "All About That Bass",
- "Elastic Heart",
- "Shake It Off",
- "Lips Are Movin",
- "Tuesday",
- "Nasty Freestyle",
- "Heartbeat Song",
- "Bang Bang",
- "Love Me Like You Do",
- "Ex's & Oh's",
- "Photograph",
- "Back To Back",
- "Hey Mama",
- "You Know You Like It",
- "Don't",
- "Girl Crush",
- "Can't Feel My Face",
- "Blessings",
- "What Do You Mean?",
- "Thinking Out Loud",
- "El Perdon (Forgiveness)",
- "Classic Man",
- "The Hanging Tree",
- "She Knows",
- "Riptide",
- "Lean On",
- "Cheerleader",
- "GDFR",
- "Style",
- "Only",
- "House Party",
- "See You Again",
- "Cool For The Summer",
- "Sugar",
- "7/11",
- "Here",
- "Centuries",
- "FourFiveSeconds",
- "Waves",
- "Want To Want Me",
- "Honey, I'm Good.",
- "Lay Me Down",
- "Kick The Dust Up",
- "Hotline Bling",
- "Uptown Funk!",
- "Stitches",
- "Stay With Me",
- "Wildest Dreams",
- "Chains",
- "How Deep Is Your Love",
- "Hit The Quan",
- "Time of Our Lives",
- "The Hills",
- "Night Changes",
- "Talking Body",
- "Flex (Ooh Ooh Ooh)",
- "CoCo",
- "Like I'm Gonna Lose You",
- "Uma Thurman",
- "Habits (Stay High)",
- "I Don't Fuck With You",
- "Good For You",
- "Downtown",
- "My Way",
- "Budapest",
- "679",
- "Worth It",
- "I'm Not The Only One",
- "Ayo",
- "Chandelier",
- "Where Are U Now",
- "Drag Me Down",
- "Fight Song",
- "I Don't Mind (Usher)",
- "Dear Future Husband",
- "Locked Away",
- "Love Me Harder",
- "Take Your Time",
- "Renegades",
- "All Eyes On You",
- "Blank Space",
- "Watch Me",
- "Hello",
- "Animals",
- "Post To Be",
- "Earned It",
- "Truffle Butter",
- "Bitch Better Have My Money",
- "The Heart Wants What It Wants",
- "Take Me To Church",
- "Somebody",
- "Trap Queen",
- "Slow Motion",
- "One Last Time",
- "No Type",
- ""};
- int compare(int a,int b)
- {
- if(memo[a][b]==-1)
- {
- printf("Is %s better than %s?\n",songs[a],songs[b]);
- int c;
- scanf("%d",&c);
- memo[a][b]=c;
- memo[b][a]=!c;
- if(c==1) return 1;
- return 0;
- }
- else return memo[a][b];
- }
- int main()
- {
- for(int i=1;i<=number;i++)
- v[i]=i;
- for(int i=1;i<=number;i++)
- for(int j=1;j<=number;j++)
- memo[i][j]=-1;
- sort(v+1,v+number+1,compare);
- freopen("final.txt","w",stdout);
- for(int i=1;i<=number;i++)
- printf("%d. %s\n",i,songs[v[i]]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement