codepasta's blog

By codepasta, 3 months ago, In English

helo, codeforce! i found ez probblem for me (https://codeforces.com/contest/231/problem/A), thinked "hmmm ez probblem" and decided to do it............. But, but, it give me wrong answer on test 2!!1! i have debugged for 45 minute but could'nt find the mistake......... can you please helpp me??????? i think it is probblem from templates, but i am not sure

probblem sentence: https://codeforces.com/contest/231/problem/A

submision: https://codeforces.com/contest/231/submission/99505107

thnk you!!1!!!

Read more »

 
 
 
 
  • Vote: I like it
  • -16
  • Vote: I do not like it

By codepasta, 4 months ago, In English

Hello, codeforce! I have a problem question.... why does it give TLE and question mark????????? question mark like this: �

Very difficult problem ,please helppp! Thankk you!

problem statement:

A. Word Capitalization time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output

Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.

Note, that during capitalization all the letters except the first one remains unchanged. Input

A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 103. Output

Output the given word after capitalization. Examples Input Copy

ApPLe

Output Copy

ApPLe

Input Copy

konjac

Output Copy

Konjac

------------------------------------------------------------------------

submission linkk: https://codeforces.com/contest/281/submission/97739755

Read more »

 
 
 
 
  • Vote: I like it
  • -25
  • Vote: I do not like it

By codepasta, 4 months ago, In English

Hello, Codeforces! I have a suggestion: a PHP contest on codeforces! Why is C++ the lucky programming language and used 99.99999% of the time??? (the rest are python and java)??? Why isn't there a PHP contest on codeforces??? PHP is the greastest programming language of all time, everybody should use it!! wHY DO YOU FAVOUR C++ SO MUCH, WHEN php CAN DO ANYTHING C++ CAN, BUT BETTER????

Read more »

 
 
 
 
  • Vote: I like it
  • -57
  • Vote: I do not like it

By codepasta, 5 months ago, In English

hello, codeforce!!!1!

i have a hard question for you, can you please helpp me????

question is: how to find if a number called n is even or odd???? my code is:

#include <iostream>

using namespace std;

int main()

{

int n;

cin >> n;

if (n == 1) cout << "ODD";

if (n == 2) cout << "EVEN";

if (n == 3) cout << "ODD";

if (n == 4) cout << "EVEN";

if (n == 5) cout << "ODD";
if (n == 6) cout << "EVEN";
if (n == 7) cout << "ODD";
if (n == 8) cout << "EVEN";
if (n == 9) cout << "ODD";
if (n == 10) cout << "EVEN";
if (n == 11) cout << "ODD";
if (n == 12) cout << "EVEN";
if (n == 13) cout << "ODD";
if (n == 14) cout << "EVEN";
if (n == 15) cout << "ODD";
}

it works for example, but gives wrong answer for n = 100000, what is wrong???? please helppp

Read more »

 
 
 
 
  • Vote: I like it
  • -40
  • Vote: I do not like it

By codepasta, 5 months ago, In English

Hello, codeforces!

You may wonder why I have such an outrageously false codeforces handle. After all, I'm just a newbie, how could I be better than tourist? Well, the answer is actually surprisingly simple:

Spoiler
the end,

Read more »

 
 
 
 
  • Vote: I like it
  • -33
  • Vote: I do not like it

By codepasta, history, 5 months ago, In English

hello, codeforces! The moderation system is very weird... my -20 contrib. comment got deleted, while there are hundreds of spammers who get away with much worse and less useful comments... why is it that? i get it, you need some moderation, but at least i want a reason from the admins why my comments get deleted... otherwise it's just CENSORFORCES!! Even secondthread, the 3rd biggest contributor on this platform had this problem of getting random comments deleted.

Read more »

 
 
 
 
  • Vote: I like it
  • -36
  • Vote: I do not like it

By codepasta, history, 5 months ago, In English

Hello, codeforces! I decided to start a youtube channel related to competitive programming, featuring videos about algorithms and explaining in-depth problem solutions. It is targeted towards people with 1400-2000 rating.

I have already posted the first video: Number theory, modular inverse, diophantic equations — course. Please, give my channel a try. I would like to hear your opinions and suggestions :)

Read more »

 
 
 
 
  • Vote: I like it
  • -52
  • Vote: I do not like it

By codepasta, 6 months ago, In English

helloo, codeforce!!!11!

problem statement is: given a and b, print a + b. a and b <= 1000000000

why is this problem giving ''time limit exceedded''?????

here is my submisssion:

#include <iostream>

using namespace std;

int main()

{

int a, b;

int i;

int answerr = 0;

cin >> a;

cin >> b; for (i = 1; i<=a; i = i + 1) answerr = answerr + 1; for (i = 1; i<=b; i = i + 1) answerr = answerr + 1; cout << answerr; return 0; }

pleasse helppp, thank you!!111!!

Read more »

 
 
 
 
  • Vote: I like it
  • -51
  • Vote: I do not like it

By codepasta, history, 6 months ago, In English

i am new to codeforce....... i dont know anything about this platfrom ....... where is the help buttoon?????? please helpp

Read more »

 
 
 
 
  • Vote: I like it
  • -25
  • Vote: I do not like it