Submission #5916724


Source Code Expand

#include "bits/stdc++.h"
using namespace std;

int main() {
	int X[9] = { 25,39,51,76,163,111,128,133,138 };
	vector<int> V;
	for (int i = 0; i < 512; i++) {
		int COUNT = 0, I = i;
		for (int j = 0; j < 9; j++) {
			COUNT += X[j] * (I % 2);
			I /= 2;
		}
		V.push_back(COUNT);
		V.push_back(COUNT + 58);
		V.push_back(COUNT + 136);
	}
	sort(V.begin(), V.end());
	V.erase(unique(V.begin(), V.end()), V.end());
	for (int i = 0; i < V.size(); i++) {
		cout << V[i] << endl;
	}
}

Submission Info

Submission Time
Task A - 得点
User yuma220284
Language C++14 (GCC 5.4.1)
Score 25
Code Size 498 Byte
Status AC
Exec Time 2 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 25 / 25
Status AC
AC × 1
Set Name Test Cases
Sample
All 1.txt
Case Name Status Exec Time Memory
1.txt AC 2 ms 256 KB