37412023-03-02 17:16:48grengBimmbamm (30)cpp11Wrong answer 15/303ms3372 KiB
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;


int main() {
	int N;
	cin >> N;
	for (int i = 1; i <= N; i++) {
		string a;
		cin >> a;
		string kell;
		if (i % 5 == 0 && i % 3 == 0) {
			kell = "BUMM";
		}
		else if (i % 3 == 0) {
			kell = "BIMM";
		}
		else if (i % 5 == 0) {
			kell = "BAMM";
		}
		else {
			kell = "SZAM";
		}
		if (a != kell)
			cout << i;
	}
}
SubtaskSumTestVerdictTimeMemory
base15/30
1Accepted0/03ms1808 KiB
2Wrong answer0/03ms2008 KiB
3Accepted3/33ms2344 KiB
4Wrong answer0/33ms2648 KiB
5Accepted3/33ms2684 KiB
6Accepted3/32ms2680 KiB
7Wrong answer0/33ms2924 KiB
8Accepted3/33ms2948 KiB
9Wrong answer0/33ms3080 KiB
10Accepted3/33ms3164 KiB
11Wrong answer0/33ms3292 KiB
12Wrong answer0/33ms3372 KiB