Sha256: d0a9a5b057a4ea7d26f85ef7bf8c18fb2814144d3bee0390fef8e798ac4b4b4e
Contents?: true
Size: 272 Bytes
Versions: 396
Compression:
Stored size: 272 Bytes
Contents
#include "grains.h" namespace grains { unsigned long long square(int which) { return 1ULL << (which-1); } unsigned long long total() { unsigned long long result = 0; for (int i = 1; i <= 64; ++i) { result += square(i); } return result; } }
Version data entries
396 entries across 396 versions & 1 rubygems