Back
Close

Sliding Into DMs

Statement

 Goal

Help women keep weirdos out of their DMs! Take in a list of numbers on a woman's phone and compare them to the numbers that are contacting them.
Input
The first list contains numbers that are registered on the woman's phone.
The next list contains numbers contacting the woman.

Line 1: x - Number of phone numbers to take in.
Next x lines: Formatted numbers on woman's phone.
Next line: y - Number of phone numbers to take in.
Next y lines: Unformatted numbers to compare
Output
Output y amount of lines.
Each line will have "You Know This Weirdo Stalker!" if the number is found in the phone
or "Weirdo Stalker!" if the contact is not present.

If instead of a number there's a name, that means the contact is already on your phone.
Constraints
Each line with a phone number will have a character count of 14 or 10.
Example
Input
3
(429) 694-6493
(738) 388-5402
(593) 997-9629
4
4296946493
7383885402
Bob
1320900321
Output
You Know This Weirdo Stalker!
You Know This Weirdo Stalker!
You Know This Weirdo Stalker!
Weirdo Stalker!

Game modes
FastestShortestReverse

Test cases
Test 1 Test
Input
3 (429) 694-6493 (738) 388-5402 (593) 997-9629 4 4296946493 7383885402 Bob 1320900321
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! Weirdo Stalker!

Validator 1 Validator
Input
3 (429) 694-6493 (738) 388-5402 (593) 997-9629 4 4296946493 1320900321 7383885402 Bob
Output
You Know This Weirdo Stalker! Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker!

Test 2 Test
Input
8 (429) 694-6493 (738) 388-5402 (593) 997-9629 (599) 412-9047 (506) 491-1205 (645) 309-2009 (996) 321-0997 (824) 953-3446 4 4296946493 7383885402 1320900321 9963210997
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! Weirdo Stalker! You Know This Weirdo Stalker!

Validator 2 Validator
Input
8 (429) 694-6493 (738) 388-5402 (593) 997-9629 (599) 412-9047 (506) 491-1205 (645) 309-2009 (996) 321-0997 (824) 953-3446 4 1320900321 4296946493 7383885402 9963210997
Output
Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker!

Test 3 Test
Input
9 (775) 619-0638 (277) 235-0424 (319) 350-9853 (418) 350-6053 (428) 407-7924 (466) 225-7966 (593) 337-7375 (203) 288-0816 (587) 409-6444 5 DetectiveJones 4284077924 Charley Brown 2032880816 2436755768
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! Weirdo Stalker!

Validator 3 Validator
Input
9 (775) 619-0638 (277) 235-0424 (319) 350-9853 (418) 350-6053 (428) 407-7924 (466) 225-7966 (593) 337-7375 (203) 288-0816 (587) 409-6444 5 DetectiveJones 4284077924 2032880816 2436755768 Charley Brown
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! Weirdo Stalker! You Know This Weirdo Stalker!

Test 4 Test
Input
11 (329) 688-4571 (758) 970-7568 (687) 825-1353 (284) 511-0661 (349) 356-4594 (240) 752-5708 (505) 813-5530 (982) 386-0447 (284) 952-3264 (614) 979-8867 (548) 824-6770 11 3296884571 7589707568 6878251353 2845110661 3493564594 2407525708 5058135530 6149798867 5488246770 9823860447 2849523264
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker!

Validator 4 Validator
Input
11 (329) 688-4571 (758) 970-7568 (687) 825-1353 (284) 511-0661 (349) 356-4594 (240) 752-5708 (505) 813-5530 (982) 386-0447 (284) 952-3264 (614) 979-8867 (548) 824-6770 11 3296884571 7589707568 6878251353 2845110661 3493564594 2407525708 5058135530 9823860447 2849523264 5488246770 6149798867
Output
You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker! You Know This Weirdo Stalker!

Test 5 Test
Input
15 (265) 442-1135 (370) 544-0411 (378) 909-7107 (428) 710-2887 (829) 975-4437 (597) 927-9758 (410) 639-4296 (507) 604-8116 (408) 745-0377 (487) 770-0815 (514) 403-5329 (817) 457-1394 (320) 950-4373 (606) 400-4545 (553) 543-9785 8 9518321135 2171540411 4584243575 7102812887 8282997437 7589779758 4194296639 5081167604
Output
Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker!

Validator 5 Validator
Input
15 (265) 442-1135 (370) 544-0411 (378) 909-7107 (428) 710-2887 (829) 975-4437 (597) 927-9758 (410) 639-4296 (507) 604-8116 (408) 745-0377 (487) 770-0815 (514) 403-5329 (817) 457-1394 (320) 950-4373 (606) 400-4545 (553) 543-9785 8 9518321135 2171540411 4584243575 7102812887 8282997437 7589779758 4194296639 5081167604
Output
Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker! Weirdo Stalker!

Solution language

Solution

Stub generator input
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants