提出 #916329
ソースコード 拡げる
#include<bits/stdc++.h>
#define REP(x,y,z) for(int x=y;x<=z;x++)
#define FORD(x,y,z) for(int x=y;x>=z;x--)
#define MSET(x,y) memset(x,y,sizeof(x))
#define FOR(x,y) for(__typeof(y.begin()) x=y.begin();x!=y.end();x++)
#define F first
#define S second
#define MP make_pair
#define PB push_back
#define SZ size()
#define M
void RI(){}
template<typename... T>
void RI( int& head, T&... tail ) {
scanf("%d",&head);
RI(tail...);
}
using namespace std;
typedef long long LL;
int main()
{
char in[205];
char ans[] = "CODEFESTIVAL2016";
while(~scanf("%s",in))
{
int aa=0;
REP(i,0,15) if(ans[i]!=in[i]) aa++;
printf("%d\n",aa);
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Signboard |
| ユーザ | Nekosyndrome |
| 言語 | C++14 (GCC 5.4.1) |
| 得点 | 100 |
| コード長 | 685 Byte |
| 結果 | AC |
| 実行時間 | 47 ms |
| メモリ | 764 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01.txt | AC | 47 ms | 764 KiB |
| 02.txt | AC | 3 ms | 256 KiB |
| 03.txt | AC | 3 ms | 256 KiB |
| 04.txt | AC | 3 ms | 384 KiB |
| 05.txt | AC | 2 ms | 256 KiB |
| 06.txt | AC | 2 ms | 256 KiB |
| 07.txt | AC | 3 ms | 256 KiB |
| 08.txt | AC | 3 ms | 256 KiB |
| 09.txt | AC | 3 ms | 256 KiB |
| s1.txt | AC | 2 ms | 256 KiB |
| s2.txt | AC | 3 ms | 256 KiB |