QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#724519 | #6616. Edward Gaming, the Champion | surenjamts | WA | 1ms | 3960kb | C++17 | 452b | 2024-11-08 13:31:18 | 2024-11-08 13:31:19 |
Judging History
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";
}
Details
Tip: Click on the bar to expand more detailed information
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'