Golfcoder FAQ LOGIN
Error

Advent of Code Leaderboard 2025 / Day 1

View puzzle on adventofcode.com

Submit solution



Leaderboard

Name Language Tokens Sum Tokens Part 1 Tokens Part 2 Last change
1 Profile imageFrederik Bonfanti Ruby 67 31 36 2 months ago
2 Profile imageCornerMercury Python 91 43 48 58 days ago
3 Profile imageAllan Taylor Python 95 45 50 2 months ago
4 Profile imageN. Adhikary Python 95 45 50 59 days ago
5 Profile imageBenjamin Groves Python 98 46 52 2 months ago
6 Profile imageAbbas Moosajee Python 114 55 59 2 months ago
7 Profile imageMichael Böiers Kotlin 117 54 63 2 months ago
8 Profile imageprogheal C++ 127 53 74 2 months ago
9 Profile imageHannah Lenk C++ 139 57 82 2 months ago
10 Profile imageAkke C 149 74 75 2 months ago
11 Profile imageValentin Slawicek Kotlin 155 61 94 2 months ago
12 Profile imageJordan Perry Python 160 67 93 2 months ago
13 Profile imageLafazar Python 180 82 98 2 months ago
14 Profile imageVadzim Kapichenka Kotlin 189 76 113 2 months ago
15 Profile imageNorbert Kiesel Kotlin 201 80 121 2 months ago
16 Profile imageOlivier Mengué TypeScript 10090 90 - 58 days ago
17 Profile imageN. Adhikary Kotlin 10106 106 - 51 days ago
18 Profile imageN. Adhikary Rust 10156 156 - 51 days ago

Solutions with 1 unsolved part get a penalty of 10000 tokens (indicated with "-").

Rules

  • You're welcome to participate alone or in a team.
  • You may submit multiple solutions and explore different programming languages.
  • Stick to the standard library of your language, no further dependencies/libraries, except the ones which OneCompiler provides (e.g. NumPy for Python).
  • Ensure your code aligns to the template (Python, Rust, Go, Kotlin, JavaScript, C#, TypeScript, C++, Java, C, Swift, Scala, Ruby, Bash), reading the puzzle input from stdin (terminated with end-of-file), and printing the solution to stdout.
  • Please refrain from making network requests, reading data from files, or storing data in variable/function/class names for reflection.
  • Your code must be able to process all valid Advent of Code inputs. Golfcoder might reevaluate correctness of your solution with different inputs after your submission.

57 tokens in C++ for part 1 by Hannah Lenk

Download solution

#include<iostream>

intposition=50,step,zeros_seen;
intmain()
{
for(chardirection;std::cin>>direction>>step;position%=100,zeros_seen+=position==0)
if(direction=='L')
position-=step;
else
position+=step;

std::cout<<zeros_seen;
}