## Search found 7 matches

Wed Mar 12, 2014 8:17 pm
Forum: Volume 118 (11800-11899)
Topic: 11837 - Musical Plagiarism
Replies: 5
Views: 1106

### Re: 11837 - Musical Plagiarism WA

After putting this question down and picking it up again, I've rewritten in (somewhat), but I still get the same answer. I've checked with your input and my output matches yours, so I'm still confused. You said my code fails your 12th test case, but our outputs match. I'm confused. #include <cstdio>...
Sun Feb 16, 2014 7:43 am
Forum: Volume 113 (11300-11399)
Topic: 11330 - Andy's Shoes
Replies: 10
Views: 6047

### Re: 11330 - Andy's Shoes

I'm getting TLE on this no matter what, and I refactored and changed a lot before posting here. Anyone have any insight? #include <climits> #include <cstdio> #include <unordered_map> using namespace std; int cases, pairs; int main() { scanf("%d", &cases); while (cases-- > 0){ scanf("%d", &pairs); un...
Thu Jan 30, 2014 7:57 am
Forum: Volume 8 (800-899)
Topic: 837 - Light and Transparencies
Replies: 25
Views: 14862

### Re: 837 - Light and Transparencies

I'm getting WA on this, though I've passed all the tests posted so far. Could anyone offer any input? #include <cstdio> #include <set> #include <vector> using namespace std; typedef struct Point{ float x; float y; Point() : x(0), y(0) {} Point(float _x, float _y) : x(_x), y(_y) { if (_x == -0) x = 0...
Thu Jan 23, 2014 3:18 am
Forum: Volume 118 (11800-11899)
Topic: 11837 - Musical Plagiarism
Replies: 5
Views: 1106

### Re: 11837 - Musical Plagiarism WA

Input: 22 15 E A E# Bb C Cb F# E# Cb F Cb Gb G D# Fb D Eb A# B Bb B# F# Eb D# A# G D C C C# B# Bb Ab E Gb F# A 24 7 B# Gb Gb Eb G Fb E B D# G# A A# Fb E# Ab Ab A G# Cb Cb B# B# D# Ab Gb Bb B Cb Gb E F# 21 16 Bb F# E B Eb C# Bb G Bb C F# Ab Cb F F# E A E# Bb G F# D A# C# F# C# G# E E# F# D# Fb C E# ...
Wed Jan 22, 2014 1:44 am
Forum: Volume 118 (11800-11899)
Topic: 11837 - Musical Plagiarism
Replies: 5
Views: 1106

### 11837 - Musical Plagiarism

I keep getting WA but I can't understand why. Does anyone have any test cases they could offer? #include <cstdio> #include <map> #include <string> #include <sstream> using namespace std; map<string, int> Scale; void initMap() { Scale["A"] = 1; Scale["A#"] = Scale["Bb"] = 2; Scale["B"] = 3; Scale["C"...
Tue Jan 21, 2014 3:43 am
Forum: Volume 101 (10100-10199)
Topic: 10125 - Sumsets
Replies: 50
Views: 16551

### Re: 10125 - Sumsets

Awesome, that did it. Thank you!
Sun Jan 19, 2014 2:03 am
Forum: Volume 101 (10100-10199)
Topic: 10125 - Sumsets
Replies: 50
Views: 16551

### Re: 10125 - Sumsets

/Removed after AC