### darkrace's blog

By darkrace, 9 years ago,

hii everyone..i am new here...wer can i ask doubts regarding any problems??i am not seeing any active dicussion about problems.

• +4

| Write comment?
 » 9 years ago, # | ← Rev. 2 →   +9 You can ask them just in these posts — it is the most usual way. However try to respect English language to increase chance of being answered, instead of being severely downvoted ;-)
 » 9 years ago, # |   -46 You are not only new, you are also very stupid.
•  » » 9 years ago, # ^ |   +17 whether or not he is stupid, you are rude!
•  » » » 9 years ago, # ^ |   -19 You watch your football.
•  » » » » 9 years ago, # ^ |   0 i will, thank you very much! :)
 » 9 years ago, # | ← Rev. 2 →   +3 Each problem here was a part of contest. When you solve a problem , see the tutorial , probably you will find some contestants who was discussing these problems after each contest. And as RodionGork said , try to respect English language to increase chance of being answered. Welcome to Codeforces =)
 » 2 years ago, # |   -6 What is the means of this in any program #define mod 998244353
•  » » 2 years ago, # ^ |   0 if you want to use the value 998244353 anywhere in your code you can write mod instead of writing 998244353.
•  » » » 2 years ago, # ^ |   +5 Like helping someone is a crime here.Why down-votes?
•  » » » 2 years ago, # ^ |   0 You will have to define this value as mod you cannot use it otherwise as per my knowledge
•  » » » » 2 years ago, # ^ |   0 No, "mod" is just a name given to that number, you can name it anything you like. As #define is a preprocessor command, so every instance of "mod" will be replaced by 998244353 before compiling.
•  » » » » » 2 years ago, # ^ |   0 That's what I was saying that you will have to define it using #define mod 998244353 or you can use it like int mod=998244353
 » 2 years ago, # |   +6 What is the different between 1. v.push_back({v[i].first, v[i].second + 1}); Vs 2. v.push_back((v[i].first, v[i].second + 1));
•  » » 2 years ago, # ^ |   +25 Inserts a pair in a vector Throws an error
•  » » 2 years ago, # ^ | ← Rev. 2 →   +5 is wrong, an alternative that is right is  v.push_back(make_pair(v[i].first, v[i].second + 1)); Edit- I know 1 is not wrong, 2 is wrong, but somehow idk how to fix it, see my reply below for more context
•  » » » 2 years ago, # ^ |   0 1 isn't wrong. The following works fine. Spoiler#include using namespace std; const int MOD=1e9+7; //const int MOD=998244353; int main() { ios_base::sync_with_stdio(0); cin.tie(0); pair p={1,2}; vector> vp; vp.push_back({p.first,p.second+1}); for(auto p:vp){ cout<
•  » » » » 2 years ago, # ^ |   +11 Yeah, ur right, I know 1 works which is why I thought i had mistyped it but infact i had written it correctly and cf somehow changed it, idk This link will explain better . Am i missing something obvious here?
•  » » » » » 2 years ago, # ^ |   0 that's funny, I think it got confused with markdown for a numbered list and those forcibly start at 1
•  » » » » » 2 years ago, # ^ |   0 I played around with it a bit. Looks like it's treating 2. as the start of a list and substituting the html with a list wrapper. Seems to cause the same result whenever you put a number followed by a . on a new line followed by some text. 255. a becomes. a
•  » » 2 years ago, # ^ |   +4 Or you could also use: v.emplace_back(v[i].first, v[i].second + 1)
 » 2 months ago, # |   0 Can anybody help in solving the spoj problem shamreen and the lost array? https://www.spoj.com/problems/MOZSATLA/ please help me i have litterally wasted my 2 days