Submission #890252
Source Code Expand
#include <iostream> #include <fstream> #include <sstream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cassert> #include <ctime> #include <cstring> #include <string> #include <vector> #include <set> #include <map> #include <queue> #include <deque> #include <list> #include <stack> #include <bitset> #include <algorithm> #include <iomanip> using namespace std; #define forn(i,n) for (int i = 0; i < int(n); i++) #define ford(i,n) for (int i = int(n) - 1; i >= 0; i--) #define fore(i,l,r) for (int i = int(l); i <= int(r); i++) #define all(a) a.begin(), a.end() #define sz(a) int(a.size()) #define mp make_pair #define pb push_back #define ft first #define sc second #define x first #define y second template<typename X> inline X abs(const X& a) { return a < 0 ? -a : a; } template<typename X> inline X sqr(const X& a) { return a * a; } typedef long long li; typedef long double ld; typedef pair<int, int> pt; const int INF = int(1e9); const li INF64 = li(1e18); const ld EPS = 1e-9; const ld PI = acosl(ld(-1)); string s; inline bool read() { if (!getline(cin, s)) return false; return true; } inline void solve() { forn (i, 4) cout << s[i]; cout << ' '; fore (i, 4, 11) cout << s[i]; cout << endl; } int main() { #ifdef SU2_PROJ assert(freopen("input.txt", "r", stdin)); assert(freopen("output.txt", "w", stdout)); #endif cout << setprecision(25) << fixed; cerr << setprecision(10) << fixed; srand(int(time(NULL))); assert(read()); solve(); #ifdef SU2_PROJ cerr << "TIME: " << clock() << endl; #endif return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CODEFESTIVAL 2016 |
User | IlyaLos |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1657 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 2 ms | 256 KB |
0_01.txt | AC | 2 ms | 256 KB |
0_02.txt | AC | 2 ms | 256 KB |
1_00.txt | AC | 2 ms | 256 KB |
1_01.txt | AC | 2 ms | 256 KB |
1_02.txt | AC | 2 ms | 256 KB |