Submission #916594
Source Code Expand
#include <iostream> #include <cmath> #include <vector> #include <map> #include <set> #include <string> #include <cstring> #include <queue> #include <ctime> #include <cassert> #include <cstdio> #include <algorithm> #include <unordered_set> #include <unordered_map> #include <bitset> using namespace std; #define fr first #define sc second #define mp make_pair #define pb push_back #define epr(...) fprintf(stderr, __VA_ARGS__) #define db(x) cerr << #x << " = " << x << endl #define db2(x, y) cerr << "(" << #x << ", " << #y << ") = (" << x << ", " << y << ")\n"; #define db3(x, y, z) cerr << "(" << #x << ", " << #y << ", " << #z << ") = (" << x << ", " << y << ", " << z << ")\n" #define all(a) (a).begin(), (a).end() #define sz(a) (int)a.size() #define equal equalll #define less lesss const int N = -1; const long long INF = 1e9 + 19; typedef long long ll; string s = "CODEFESTIVAL2016"; void read() { string t; cin >> t; int cnt = 0; for (int i = 0; i < (int)s.size(); i++) cnt += s[i] != t[i]; cout << cnt << endl; } void solve() { } void stress() { } int main(){ #ifdef MY_DEBUG freopen("in", "r", stdin); //freopen("out", "w", stdout); #endif if (1) { int k = 1; for (int tt = 0; tt < k; tt++) { read(); solve(); } } else { stress(); } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Signboard |
User | Belonogov |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1450 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 256 KB |
02.txt | AC | 3 ms | 256 KB |
03.txt | AC | 3 ms | 256 KB |
04.txt | AC | 3 ms | 256 KB |
05.txt | AC | 3 ms | 256 KB |
06.txt | AC | 3 ms | 256 KB |
07.txt | AC | 3 ms | 256 KB |
08.txt | AC | 2 ms | 256 KB |
09.txt | AC | 3 ms | 256 KB |
s1.txt | AC | 3 ms | 256 KB |
s2.txt | AC | 3 ms | 256 KB |