Search found 2 matches

by yingxuan
Tue Jun 21, 2016 5:51 am
Forum: Volume 101 (10100-10199)
Topic: 10114 - Loansome Car Buyer
Replies: 38
Views: 21261

Re: 10114 - Loansome Car Buyer

Solved it. Indexing problem. Thank you :)
by yingxuan
Sun Jun 19, 2016 8:15 am
Forum: Volume 101 (10100-10199)
Topic: 10114 - Loansome Car Buyer
Replies: 38
Views: 21261

Re: 10114 - Loansome Car Buyer

I have roamed the internet for many test cases for this problem and I passed all of them but I got a WA. Why is this?
As follows in my code.
#include <bits/stdc++.h>
using namespace std;

int main(){
int months;
int ans;
while (cin >> months){
if (months < 0){
int a,b,c;
cin >> a >> b >> c ...

Go to advanced search