Take a look at this C++ submission 199864568:
#import <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin >> a;
cout << ((a%2==0 && a>2) ? "YES" : "NO");
}
# | User | Rating |
---|---|---|
1 | Benq | 3783 |
2 | jiangly | 3772 |
3 | tourist | 3706 |
4 | maroonrk | 3609 |
5 | Um_nik | 3591 |
6 | fantasy | 3526 |
7 | ko_osaga | 3500 |
8 | inaFSTream | 3477 |
9 | cnnfls_csy | 3427 |
10 | zh0ukangyang | 3423 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 185 |
2 | awoo | 182 |
3 | nor | 172 |
4 | -is-this-fft- | 170 |
5 | adamant | 169 |
6 | maroonrk | 165 |
7 | antontrygubO_o | 160 |
8 | SecondThread | 158 |
9 | dario2994 | 151 |
9 | kostka | 151 |
Take a look at this C++ submission 199864568:
#import <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin >> a;
cout << ((a%2==0 && a>2) ? "YES" : "NO");
}
Take a closer look at the code =P
Look even closer.
Read the first line.
The first line uses #import
instead of the usual #include
.
The other day, I was coding some C++. My Pythonic muscle memory caused me to accedently write #import
instead of #include
, and to my great surprise, the code still compiled!
The only information that I was able to find about #import
is from this stackoverflow comment. As I understand it, #import
is a really old gcc feature that combines #include
and #prama once
into one.
There are arguably some other positives to using #import
instead of #include
. #import
is one character shorter than #include
, and as someone that mainly uses Python, it is easier for me to remember import than include.
Hello, Codeforces!!
We are happy to invite you to TheForces Round #9 (Fool-Forces), which will take place on Mar/30/2023 18:05 (Moscow time)
Please don't forget the time. Contest starts soon...
This competition is similar to April Fool's Day Contests, As there's an official round on April 1st this year, We decided to hold our round sooner.
You will have 2 hours to solve 8 problems.
Problems were prepared and authored by Parisa_Amiri and E404_Not_Found.
Would like to thank our testers: Little_Sheep_Yawn, wuhudsm, O--O, Nafis, sjNxksbzj, _Prince.
Also we want to thank you for participating in our round.
P.S : The problems are not sorted by difficulty, So please do read all the problems, Also the round will be available in gym for everyone after the contest end!
List of the top places :
Joshc The only one who AKed the round! orz.
"Stay hungry! Stay foolish!" Steve Jobs.
Discord Group (500+ people)
Hello, friends!
Still i am not able to solve in div2 a,b ,, div3 a,b and div4 c,d.
Also, when I solve a problem like 900-1000 rated, I have to also struggle it and too much time need for approaching the problem solution, even don't came the idea.
Now, what can i do now>>?
Hello Codeforces, I am a 15 year old high school student that works hard to improve, after reaching Cyan with 4 months of practice, going on for another 2 months without much improvement and a 2.5 month break, I have just reached Expert after around 9 months. I would like to learn what difficulty range I should study from and what resources would be most beneficial in your opinion. Thank you in advance.
Hello, Codeforces!
I, along with AlperenT, Ari, BucketPotato, ScarletS, and ToxicPie9, would like to invite everyone on Codeforces to the April Fools Day Contest 2023! The 11th April Fools Day Contest will take place on Apr/01/2023 17:35 (Moscow time). This is a joke competition in which solving the problem is often easier than figuring out what the actual task is.
In this round you'll be given $$$n$$$ weird problems and 2 hours to solve them, where $$$7 \leq n \leq 12$$$. At most $$$\sqrt{n}$$$ of the problems will be interactive. The contest will use ACM ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them), and it will be unrated.
You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. To get an idea of what the contest will look like, you can check out the contests of the past years: 2012, 2013, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2022.
Good luck, and have fun!
1808D - Petya, Petya, Petr, and Palindromes
1808E1 - Minibuses on Venus (easy version)
1808E2 - Minibuses on Venus (medium version)
1808E3 - Minibuses on Venus (hard version)
Hii Codeforces!
We invite you to participate in CodeChef’s Starters 83, aka International Coding Marathon, in collaboration with Technex '23, IIT (BHU), this Wednesday, 29th March, rated for all divisions.
Time : 8:00 PM — 10:30 PM IST
Note that the duration is 2.5 hours. Read about the recent CodeChef changes here.
Joining us on the problem setting panel are
ICM is the flagship CP event of Byte the Bits, the set of programming events organized under Technex, the annual techno-management fest of the Indian Institute of Technology (BHU), Varanasi.
Note: Prizes are only for Indian participants (combined ranklist for divisions 1 and 2).
Please fill out this form to avail them.
Some of our previous rounds:
Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest.
The video editorials of the problems will be available for all users for 1 day as soon as the contest ends, after which they will be available only to Pro users.
Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here.
Hope to see you participating. Good Luck!
Recently I have been facing pinched nerve problems. I feel my right hand has got weaker . I am having thoughts that I maynot survive long on this planet . Pray for my recovery . In my little life codeforces has given me something to feel worthy of. I wanna thank the community for everything . And at last I seek everyone's prayer . It has been a journey to be cherished , I feel codeforces as my family , that's why I have shared my feelings here , Please pray for my recovery . I am only 22 and I wanna live and give some more contests.
Hello Codeforces! The 10th Stage of the 1st Universal Cup is coming. It will be held from Apr 1th to 2th.
The contest is based on a "simple" contest, Yuhao Du Contest 11. It was used in the Osijek Competitive Programming Camp 2023 Winter. Teams that participated in the camp can have their camp results included in the final standings. Thanks to the judges and authors for preparing this great contest and sharing with us as a Universal Cup Stage.
This contest consists of some problems I wrote in recent two years and some new problems. Most problems are not published before, but some problems are public, or well-known in China. If you solved problems I wrote in private training contests or some contests including ZJOI 2020 and SDOI 2022, please skip this round.
As usual, we have three time windows for participating. You can participate in the contest in the following three time windows:
Please note that you can see two scoreboards in DOMjudge. The 'Local Scoreboard' shows the standings ONLY IN THE CURRENT TIME WINDOW. And the 'Combined Scoreboard' shows all participants, including the onsite participants, and the cup participants in the previous time windows.
Contest link: https://domjudge.qoj.ac/
Universal Cup Scoreboard: https://qoj.ac/ucup/scoreboard
About Universal Cup:
Universal Cup is a non-profit organization dedicated to providing trainings for competitive programming teams. Up to now, there are more than 500 teams from all over the world registering for Universal Cup.
A more detailed introduction: https://codeforces.com/blog/entry/111672
Register a new team: https://ucup.ac/register (the registration request will be processed before each stage)
Results of the past stages: https://ucup.ac/results
Terms: https://ucup.ac/terms
Ratings: https://ucup.ac/rating
It is an interesting thing that the brute force passed the problem D https://codeforces.com/contest/1808/submission/199698146
Name |
---|