Submission #37790941


Source Code Expand

#include <bits/stdc++.h>

#define x first
#define y second
#define IOS ios::sync_with_stdio(false)
#define cit cin.tie(0)
#define cot cout.tie(0)

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef pair<int, int> PII;

const int N = 100010, M = 100010, MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const LL LLINF = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-8;

int n;
string s[10];

void solve();

int main()
{
	IOS;
	cit, cot;
	int T = 1;
//	cin >> T;
	while (T -- ) solve();
	return 0;
}

void solve()
{
	cin >> n;
	for (int i = 0; i < n; i ++ ) cin >> s[i];
	
	for (int i = n - 1; i >= 0; i -- ) cout << s[i] << endl;
}

Submission Info

Submission Time
Task A - Sequence of Strings
User hcywoi
Language C++ (GCC 9.2.1)
Score 100
Code Size 695 Byte
Status AC
Exec Time 6 ms
Memory 3656 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 11
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 02_max_00.txt, 02_max_01.txt, 02_max_02.txt, 03_min_00.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 6 ms 3616 KiB
00_sample_01.txt AC 2 ms 3528 KiB
01_random_00.txt AC 2 ms 3492 KiB
01_random_01.txt AC 1 ms 3544 KiB
01_random_02.txt AC 2 ms 3616 KiB
01_random_03.txt AC 2 ms 3520 KiB
01_random_04.txt AC 1 ms 3656 KiB
02_max_00.txt AC 2 ms 3568 KiB
02_max_01.txt AC 2 ms 3544 KiB
02_max_02.txt AC 2 ms 3612 KiB
03_min_00.txt AC 2 ms 3616 KiB