mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 15:16:28 +00:00
A - Six Characters
https://atcoder.jp/contests/abc251/submissions/31656570
This commit is contained in:
parent
774e0d8a24
commit
6040ab640e
20
AtCoder/ABC251/A/A.cpp
Normal file
20
AtCoder/ABC251/A/A.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
std::string s;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
cin >> s;
|
||||
for (int i = 0; i < 6; i++) {
|
||||
cout << s[i % s.size()];
|
||||
}
|
||||
cout << endl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user