Table of Contents
Edit on GithubUSACO Bronze 2016 December - The Cow-Signal
Authors: Benjamin Qi, Jesse Choe
C++
1// Created by Jesse Choe - Bronze Template23#include <bits/stdc++.h>4using namespace std;56// Type aliases78using ll = long long;9using str = string;10using vi = vector<int>;
Python
1import sys23sys.stdin = open("cowsignal.in","r")4sys.stdout = open("cowsignal.out","w")56M,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!