CoolFace
Datasetpublic

hackercupai/hackercup

Data Preview The data available in this preview contains a 10 row dataset: Sample Dataset ("sample"): This is a subset of the full dataset, containing data from 2023. To view full dataset, download output_dataset.parquet. This contains data from 2011 to 2023. Fields The dataset include the following fields: name (string) year (string) round (string) statement (string) input (string) solution (string) code (string) sample_input (string) sample_output (string)… See the full description on the dataset page: https://huggingface.co/datasets/hackercupai/hackercup.

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
24likes2.2kdownloads
second_meaning.cpp28 linesDownload Raw Back to quals
1#include <algorithm>2#include <iostream>3#include <vector>4using namespace std;5 6vector<string> solve(int N, const string &C) {7  vector<string> res;8  for (int i = 1; i < N; i++) {9    res.push_back(string(i, C[0] == '-' ? '.' : '-') + C[0]);10  }11  return res;12}13 14int main() {15  int T, N;16  string C;17  cin >> T;18  for (int t = 1; t <= T; t++) {19    cin >> N >> C;20    cout << "Case #" << t << ":" << endl;21    vector<string> S = solve(N, C);22    for (auto s : S) {23      cout << s << endl;24    }25  }26  return 0;27}28