Beginner Free Contest 50 - CAMPING

View as PDF

Submit solution

Points: 0.20 (partial)
Time limit: 1.0s
Memory limit: 512M

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

In case the statement didn't load correctly, you can download the statement here: Statement

Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.


Comments

Please read the guidelines before commenting.



  • 0
    tink35legiahuy  commented on July 9, 2024, 7:23 a.m.

    mn ơi code mình sai ở đâu ạ /* Fireflies, a million little pieces Feeds the dying light, and brings me back to life In your eyes, I see something to believe in Your hands are like a flame, your palms' the sweetest pain Let the darkness lead us into the light Let our dreams get lost, feel the temperature rise Baby, tell me one more beautiful lie One touch and I ignite Like a starship speeding into the night You and I get lost in the infinite lights Baby, tell me one more beautiful lie One touch and I ignite One touch and I ignite One touch and I ignite So alive, your touch is like the daylight Burning on my skin, it turns me on again You and I, survivors of the same kind But we're the only ones dancing on the sun Let the darkness lead us into the light Let our dreams get lost, feel the temperature rise Baby, tell me one more beautiful lie One touch and I ignite Like a starship speeding into the night You and I get lost in the infinite lights Baby, tell me one more beautiful lie One touch and I ignite One touch and I ignite One touch and I ignite Diamonds are forever, but all we need is just tonight We're monumental tremors that can freeze the speed of life Just like particles that's falling from heaven all over the stars Hear you calling for me, hear you calling me home from afar Let the darkness lead us into the light Let our dreams get lost, feel the temperature rise Baby, tell me one more beautiful lie One touch and I ignite I feel the heat as we collide Like a fever that feels so right So baby, tell me one more beautiful lie One touch and I ignite One touch and I ignite One touch and I ignite One touch and I ignite One touch and I ignite One touch and I ignite */

    include<bits/stdc++.h>

    define ll long long

    define ull unsigned long long

    define MOD 1000000007

    define nmax uint64_t(1e7+7)

    define Ignite(name) freopen(name".inp","r",stdin);freopen(name".out","w",stdout);

    define huylg iosbase::syncwith_stdio(0);cin.tie(0);cout.tie(0);

    define pii pair<int,int>

    define ppi pair<int,pii>

    define pll pair<long long,long long>

    define fi first

    define se second

    define MAX_N 1e6

    define pb push_back

    define FOR(i,x,y) for(int i=x;i<=y;i++)

    define el "\n"

    define ve vector

    define For(i,x,y) for(int i=x;i>=y;i--)

    define pq priority_queue

    using namespace std; const int dx[]={-1,0,1,0}; const int dy[]={0,1,0,-1}; const int oo=1000000009; int n,x; vector<int> a; int32_t main() { huylg cin>>n>>x; a.resize(n); for(int i=0;i<n;i++) { cin>>a[i]; } int dem=1; for(int i=0;i<n;i++) { if(a[i]>x) { dem++; } } cout<<dem<


    • 0
      quan08  commented on Aug. 23, 2024, 4:42 a.m.

      code bạn mù mắt quá