Submission #2708400
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ vector<char> c(5); for(int i = 0; i < 5; i++){ cin >> c[i]; } int n; cin >> n; if(n % 5 == 0){ cout << c[n % 5 - 1] << c[4] << endl; return 0; } if(n % 10 == 0){ if(n < 5){ cout << c[0] << c[n - 1] << endl; } else { cout << c[1] << c[n-6] << endl; } cout << c[n / 5] << c[n % 10 - 1] << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 25個の文字列 |
User | fazerog02 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 441 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:23:1: error: expected ‘}’ at end of input } ^