Submission #74263089


Source Code Expand

#include <bits/stdc++.h>
#define ll long long
const ll N = 1e6 + 5, MOD = 1e9 + 7, inf = 2e18;
using namespace std;
int dx[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
char di[] = {'R', 'L', 'D', 'U'};
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template<class T>
using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>;

void Ebraam() {
    ios_base::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
#ifndef ONLINE_JUDGE
    freopen("Input.txt", "r", stdin);
    freopen("Output.txt", "w", stdout);
#endif
}

void solve() {
    int n;
    cin >> n;
    for (int i = n; i; i--) {
        cout << i;
        if (i > 1)cout << ',';
    }
}

int main() {
    Ebraam();
    int t = 1;
    // cin >> t;
    while (t--) {
        solve();
        if (t)cout << endl;
    }
    return 0;
}

Submission Info

Submission Time
Task A - 3,2,1,GO
User Ebraam_Yousef
Language C++23 (GCC 15.2.0)
Score 100
Code Size 1084 Byte
Status AC
Exec Time 1 ms
Memory 3552 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 9
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 1 ms 3552 KiB
random_02.txt AC 1 ms 3544 KiB
random_03.txt AC 1 ms 3524 KiB
random_04.txt AC 1 ms 3544 KiB
random_05.txt AC 1 ms 3516 KiB
random_06.txt AC 1 ms 3540 KiB
sample_01.txt AC 1 ms 3536 KiB
sample_02.txt AC 1 ms 3540 KiB
sample_03.txt AC 1 ms 3516 KiB