QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#724492#6616. Edward Gaming, the ChampionsurenjamtsWA 1ms3940kbC++17427b2024-11-08 13:23:422024-11-08 13:23:42

Judging History

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

  • [2024-11-08 13:23:42]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3940kb
  • [2024-11-08 13:23:42]
  • 提交

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;
	cin >> s;
	int cnt = 0;
	for(int i = 4; i < s.size(); i ++ ){
		if( s[i-4] = 'e' && s[i-3] == 'd' && s[i-2] == 'g' && s[i-1] == 'n' && s[i] == 'b' ){
			cnt ++;
		}
	}
	cout << cnt << "\n";
}

詳細信息

Test #1:

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

input:

edgnb

output:

1

result:

ok 1 number(s): "1"

Test #2:

score: 0
Accepted
time: 1ms
memory: 3884kb

input:

zvyialcqxheifpykfedliuoyzcjhlnrfiptqfrydtcczdpfkjxcauuaqzypyerpykxwqlpzblevnfyijtjrvkxqgekfivkdotqhytdxliwyzvmrhvpkrtfxdprldadpbqubhuongrnadywckhgesbfxvnuwmrrxlxwnzrwlyihgaprtyddmkiuhhhkjxfffiztbbhwialvooqkgvwjpxhxbhuqowmrxtgskhaabmkehbnshvswaxgvqtzfkdkixtqahjwdowubpdqeovrvrubarblkuuredcacccamoswpwq...

output:

2841

result:

ok 1 number(s): "2841"

Test #3:

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

input:

wptejumdvrtnzgyitrrjrephmydwqmavdwsbvttdtidzclydzuzgchqehrfokcusynllsawzvwvteqfsfydnagsoiqmqgqghibiwjcgrcvppkuhhqwxliswpwywgflxtuoycqibneqhhjvquyhzgpoyeixocobncthkcimaaleznbmdfmflausxrbckvcpgswylbdshikomojacsaenmgfamocxbeydtjvsgevvunqsqtdblrnpqlqbcadvwbwqufcrtyyimzyvvzmgjqtekahgnsgotwilfuywykouwlkzo...

output:

3684

result:

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