Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
struct node { int idx; int mood; int passed_nodes; node() {} node(int _idx, int _mood, int _passed_nodes) { idx = _idx; mood = _mood; passed_nodes = _passed_nodes; } bool operator < (const node &tmp) const { int score1 = 0, score2 = 0; if(mood > tmp.mood) { score1++; } else { score2++; } if(passed_nodes < tmp.passed_nodes) { score1++; } else { score2++; } return score1 < score2; } };
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)