Submission #2692700


Source Code Expand

#include <iostream>
#include <climits>
#include <bitset>
#include <stack>
#include <queue>
#include <iomanip>
#include <limits>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string.h>
 
using namespace std;
typedef long long ll;
 
 
typedef pair<ll,ll> P;
long long int INF = 1e18;
double Pi = 3.141592653589;
const int mod = 1000000007;
// memset(a,0,sizeof(a)); →全部0にする
 
vector<int> G[100005];
std::vector<P> tree[100010];
 
int dx[8]={1,0,-1,0,1,1,-1,-1};
int dy[8]={0,1,0,-1,1,-1,-1,1};
 
#define p(x) cout<<x<<endl;
#define el cout<<endl;
#define pe(x) cout<<x<<" ";
#define re(i,a,b) for(i=a;i<=b;i++)
 
ll i,j,k,ii,jj;
ll n,m,sum,num=INF;
ll ans;
ll a,b,c,d,e;
ll x[100005],y[100005],z[100005];
ll xa[100005],ya[100005],za[100005];
string s,t;

int main(){
	cin>>s;
	t="CODEFESTIVAL2016";
	for(i=0;i<16;i++){
		if(s[i]!=t[i])ans++;
	}
	p(ans);
	return 0;
    

}

Submission Info

Submission Time
Task A - Signboard
User enjapma
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1025 Byte
Status AC
Exec Time 3 ms
Memory 5504 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 11
Set Name Test Cases
Sample s1.txt, s2.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
01.txt AC 3 ms 5504 KB
02.txt AC 3 ms 5504 KB
03.txt AC 3 ms 5504 KB
04.txt AC 3 ms 5504 KB
05.txt AC 3 ms 5504 KB
06.txt AC 3 ms 5504 KB
07.txt AC 3 ms 5504 KB
08.txt AC 3 ms 5504 KB
09.txt AC 3 ms 5504 KB
s1.txt AC 3 ms 5504 KB
s2.txt AC 3 ms 5504 KB