View Code of Problem 3692

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
// 1 red yellow black
// 2 
int main() {
	int t;
	
	while (cin >> t) {
		if (t == 1) cout << 3 << endl;
		else {
			cout << 3 * 2 * (t - 1) << endl;
		}

	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3692