Submission #890381
Source Code Expand
#include<cctype>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<cmath>
#include<cassert>
#include<algorithm>
#include<numeric>
#include<vector>
#include<string>
#include<map>
#include<unordered_map>
#include<queue>
#include<tuple>
using namespace std;
typedef long long int lnt;
typedef unsigned long long int unt;
typedef unsigned ust;
typedef double dou;
typedef pair<int,int> P;
#define FZ(i,n) for(int i=0;i<(n);++i)
#define FB(i,n) for(int i=(n)-1;i>=0;--i)
#define FV(i,st,ed) for(int i{st};i<(ed);++i)
#define FC(i,n) for(int i{n};i;--i)
#define FZU(i,n) for(ust i{0};i!=(n);++i)
#define FVU(i,st,ed) for(ust i{st};i<(ed);++i)
#define FCU(i,n) for(ust i{n};i;--i)
#define SZ(x) ((int)x.size())
#define ALL(x) std::begin(x),std::end(x)
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define RI(x) scanf("%d",&(x))
#define RII(x,y) scanf("%d %d",&(x),&(y))
#define RS(x) scanf("%s",x)
#define RI64(x) scanf("%I64d",&(x))
#define RII64(x,y) scanf("%I64d%I64d",&(x),&(y))
#define FIR first
#define SEC second
#define pritnf printf
constexpr ust N = 100514u;
char s[1024];
int main(){
RS(s);
char t= s[4]; s[4] = 0;
printf("%s ",s);
s[4] = t;
printf("%s\n",s+4);
return 0;
}
Submission Info
Submission Time
2016-09-24 21:01:33+0900
Task
A - CODEFESTIVAL 2016
User
loliloli
Language
C++14 (GCC 5.4.1)
Score
100
Code Size
1385 Byte
Status
AC
Exec Time
1 ms
Memory
128 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:47:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
RS(s);
^
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
1 ms
128 KB
0_01.txt
AC
1 ms
128 KB
0_02.txt
AC
1 ms
128 KB
1_00.txt
AC
1 ms
128 KB
1_01.txt
AC
1 ms
128 KB
1_02.txt
AC
1 ms
128 KB