USACO Bronze 2016 December - The Cow-Signal

Authors: Benjamin Qi, Jesse Choe

Table of Contents


Edit on Github

Official Analysis (Java)

C++

1// Created by Jesse Choe - Bronze Template
2
3#include <bits/stdc++.h>
4using namespace std;
5
6// Type aliases
7
8using ll = long long;
9using str = string;
10using vi = vector<int>;

Python

1import sys
2
3sys.stdin = open("cowsignal.in","r")
4sys.stdout = open("cowsignal.out","w")
5
6M,N,K = map(int,input().split())
7g = [input() for _ in range(M)]
8for i in range(K*M):
9 for j in range(K*N):
10 print(g[i//K][j//K],end='')

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!

Give Us Feedback on USACO Bronze 2016 December - The Cow-Signal!