Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <cmath>
#include <tuple>
#include <cstdio>
#include <bitset>
#include <sstream>
#include <iterator>
#include <numeric>
#include <map>
#include <cstring>
#include <set>
#include <functional>
#include <iomanip>

using namespace std;

#define DEBUG_ //!!$BDs=P;~$K%3%a%s%H%"%&%H(B!!
#ifdef DEBUG_
#define dump(x)  cerr << #x << " = " << (x) << endl;
#else
#define dump(x)  ;
#endif

#define equals(a,b) (fabs((a)-(b)) < EPS)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define SZ(x) ((int)(x).size())
#define pb push_back
#define eb emplace_back

//#define int long long

typedef long long LL;
typedef vector<int> VI;
typedef vector<LL> VL;
typedef vector<VI> VVI;
typedef vector<VL> VVL;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

    template <typename T>
std::string printVector(const std::vector<T> &data)
{
    std::stringstream ss;
    std::ostream_iterator<T> out_it(ss, ", ");
    ss << "[";
    std::copy(data.begin(), data.end() - 1, out_it);
    ss << data.back() << "]";
    return ss.str();
}

template <typename T>
void print_array(const T &ary, int size){
    REP(i,size){
        cout << ary[i] << " ";
    }
    cout << endl;
}

auto start = std::chrono::system_clock::now();
inline double get_time() {
  auto end = std::chrono::system_clock::now();
  auto dur = end - start;
  double msec = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
  return msec;
}

const int mod = 1e9+7;
const LL LINF = 1001002003004005006ll;
const int INF = 1001001001;
const double EPS = (1e-10);
const long double PI = 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899;
int dx[] = {0,0,-1,1};
int dy[] = {-1,1,0,0};

int D;
LL C[26];
VVL S;

void input(){
    cin >> D;
    REP(i,26) cin >> C[i];
    S.assign(D,VL(26));
    REP(i,D) REP(j,26) cin >> S[i][j];
}

void solve(){
    // last days
    LL L[26] = {};

    LL score = 0;
    REP(day,D){

        LL best = -LINF;
        LL choice = -1;

        REP(cand, 26){
            LL tmp = L[cand];
            L[cand] = day+1;

            LL gain = S[day][cand];
            REP(i,26){
                LL interval = day+1 - L[i];
                gain -= C[i] * (interval + interval+12) * 13 / 2;
                //gain -= C[i] * (day+1 - L[i]);
            }

            if(best < gain){
                best = gain;
                choice = cand;
            }


            L[cand] = tmp;
        }

        L[choice] = day+1;
        cout << choice+1 << "\n";

    }

}


signed main(int argc, char const *argv[])
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << setprecision(12);

    input();
    solve();
    while(1){
        if(get_time() > 1980) break;;
    }

}

Compiler output:
a.cc:69:19: error: 'std::chrono' has not been declared
   69 | auto start = std::chrono::system_clock::now();
      |                   ^~~~~~
a.cc: In function 'double get_time()':
a.cc:71:19: error: 'std::chrono' has not been declared
   71 |   auto end = std::chrono::system_clock::now();
      |                   ^~~~~~
a.cc:73:22: error: 'std::chrono' has not been declared
   73 |   double msec = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
      |                      ^~~~~~
a.cc:73:49: error: 'std::chrono' has not been declared
   73 |   double msec = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
      |                                                 ^~~~~~