Submission #891677
Source Code Expand
//#define M_PI 3.14159265358979323846
#define _USE_MATH_DEFINES
//#define _GLIBCXX_DEBUG
//#define all(x) (x).begin(),(x).end()
#pragma comment(linker,"/STACK:256000000")
#include <bits/stdc++.h>
#define TASK ""
#define sqr(x) ((x)*(x))
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
using namespace std;
const ll INFLL = numeric_limits<ll>::max();
const ll INFINT = numeric_limits<int>::max();
const ld EPS = 1e-7;
const ll MOD = 1000000000;
const ll MAXN = 123456;
void run()
{
string s;
cin >> s;
cout << s.substr(0, 4) << " " << s.substr(4, 8) << endl;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
#ifdef LOCAL
//#define STRESS
#ifdef STRESS
freopen("input.txt", "w", stdout);
cout << "1000 50\n";
for (int i = 0; i < 999; i++)
{
for (int j = 0; j < 999; j++) cout << ".";
cout << "X\n";
}
for (int j = 0; j < 1000; j++)
if (j != 1000 / 50)cout << "X";
else cout << ".";
return 0;
#endif
if (strcmp(TASK, "-") != 0)
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
}
#else
if (strcmp(TASK, "") != 0)
{
freopen(TASK".in", "r", stdin) ;
freopen(TASK".out", "w", stdout) ;
}
#endif
run();
return 0;
}
Submission Info
Submission Time |
|
Task |
A - CODEFESTIVAL 2016 |
User |
Krock |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
1409 Byte |
Status |
AC |
Exec Time |
2 ms |
Memory |
256 KB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:59:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(TASK".in", "r", stdin) ;
^
./Main.cpp:60:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(TASK".out", "w", stdout) ;
^
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 |