QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#724519#6616. Edward Gaming, the ChampionsurenjamtsWA 1ms3960kbC++17452b2024-11-08 13:31:182024-11-08 13:31:19

Judging History

你现在查看的是最新测评结果

  • [2024-11-08 13:31:19]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3960kb
  • [2024-11-08 13:31:18]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define F first
#define S second
signed main(){
	ios_base::sync_with_stdio(NULL);
	cin.tie(NULL);
	cout.tie(NULL);
	string s, str = "";
	cin >> s;
	int cnt = 0;
	int n = s.size();
	for(int i = 0; i < n-4; i ++ ){
		if( s[i] = 'e' && s[i+1] == 'd' && s[i+2] == 'g' && s[i+3] == 'n' && s[i+4] == 'b' ){
			cnt ++;
		}
	}
	cout << cnt << "\n";
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3828kb

input:

edgnb

output:

1

result:

ok 1 number(s): "1"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3960kb

input:

zvyialcqxheifpykfedliuoyzcjhlnrfiptqfrydtcczdpfkjxcauuaqzypyerpykxwqlpzblevnfyijtjrvkxqgekfivkdotqhytdxliwyzvmrhvpkrtfxdprldadpbqubhuongrnadywckhgesbfxvnuwmrrxlxwnzrwlyihgaprtyddmkiuhhhkjxfffiztbbhwialvooqkgvwjpxhxbhuqowmrxtgskhaabmkehbnshvswaxgvqtzfkdkixtqahjwdowubpdqeovrvrubarblkuuredcacccamoswpwq...

output:

2841

result:

ok 1 number(s): "2841"

Test #3:

score: -100
Wrong Answer
time: 1ms
memory: 3920kb

input:

wptejumdvrtnzgyitrrjrephmydwqmavdwsbvttdtidzclydzuzgchqehrfokcusynllsawzvwvteqfsfydnagsoiqmqgqghibiwjcgrcvppkuhhqwxliswpwywgflxtuoycqibneqhhjvquyhzgpoyeixocobncthkcimaaleznbmdfmflausxrbckvcpgswylbdshikomojacsaenmgfamocxbeydtjvsgevvunqsqtdblrnpqlqbcadvwbwqufcrtyyimzyvvzmgjqtekahgnsgotwilfuywykouwlkzo...

output:

3684

result:

wrong answer 1st numbers differ - expected: '3683', found: '3684'