Submission #74263452


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
typedef double db;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<int,char> pic;
typedef vector<int> vi;
typedef vector<ll> vll;
#define SZ(x) ((int)x.size())
ll ksm(ll a,ll b,ll p){if (p == 1)return 0;if (b == 0)return 1%p;
ll ans = 1;	a %= p;while (b > 0){if (b&1){ans = ans*a%p;}a = (a*a)
%p;b >>= 1;}return ans;}
const int mod = 1e9+7;
const int P = 998244353;
const ll inf = (1LL << 50LL);
const ll N = 5010;

int n;
int main(){
	scanf("%d",&n);
	for (int i = n;i >= 1;i--){
		printf("%d",i);
		if (i != 1){
			printf(",");
		}
	}
		
    return 0;
}

Submission Info

Submission Time
Task A - 3,2,1,GO
User wuqize
Language C++23 (GCC 15.2.0)
Score 100
Code Size 669 Byte
Status AC
Exec Time 1 ms
Memory 3856 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 3676 KiB
random_02.txt AC 1 ms 3672 KiB
random_03.txt AC 1 ms 3788 KiB
random_04.txt AC 1 ms 3676 KiB
random_05.txt AC 1 ms 3604 KiB
random_06.txt AC 1 ms 3676 KiB
sample_01.txt AC 1 ms 3856 KiB
sample_02.txt AC 1 ms 3724 KiB
sample_03.txt AC 1 ms 3788 KiB