카테고리 없음

1084 문제

2023. 7. 24. 18:35

#include <iostream>
#include<stdio.h>
using namespace std;

//1084
int main() {
	
	int r, g, b;
	int c = 0;
	cin >>r>>g>>b;
	for (int i = 0; i < r; i++)
	{
		for (int j = 0; j< g; j++)
		{
			for (int k = 0; k< b ; k++)
			{
				cout << i << j << k << "\n";
				c++;
				       
			}
			
		}
		
	}
	cout << c << endl;
	return 0;
}