14642022-10-17 18:55:28lacitoKazamatacpp11Wrong answer 2/403ms4520 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	/*vector<bool> megvan(n);
	vector<int> szoba(n);
	for (int i = 0; i < n; i++) {
		cin >> szoba[i];
	}
	int hany = 0;
	bool kesz = false;
	while(!kesz) {
		hany++;
		kesz = true;
		for (int i = 0; i < n; i++) {
			megvan[szoba[i]] = true;
			if (!megvan[i]) {
				kesz = false;
				break;
			}
		}
		for (int i = 0; i < n; i++) {
			szoba[i]++;
			szoba[i] %= n;
		}
	}
	cout << hany - 1;*/
	cout << n - 1;
}
SubtaskSumTestVerdictTimeMemory
base2/40
1Wrong answer0/03ms1876 KiB
2Wrong answer0/02ms2124 KiB
3Wrong answer0/22ms2320 KiB
4Wrong answer0/22ms2372 KiB
5Wrong answer0/22ms2592 KiB
6Accepted2/22ms2648 KiB
7Wrong answer0/22ms2852 KiB
8Wrong answer0/22ms3052 KiB
9Wrong answer0/22ms3260 KiB
10Wrong answer0/22ms3376 KiB
11Wrong answer0/22ms3500 KiB
12Wrong answer0/22ms3752 KiB
13Wrong answer0/22ms3784 KiB
14Wrong answer0/22ms3788 KiB
15Wrong answer0/22ms3788 KiB
16Wrong answer0/22ms4028 KiB
17Wrong answer0/22ms4120 KiB
18Wrong answer0/22ms4328 KiB
19Wrong answer0/22ms4436 KiB
20Wrong answer0/22ms4444 KiB
21Wrong answer0/22ms4520 KiB
22Wrong answer0/22ms4488 KiB