<commit_before><commit_msg>Added Java solution for temperature game<commit_after>import java.util.*;
import java.io.*;
import java.math.*;

/**
 * Auto-generated code below aims at helping you parse
 * the standard input according to the problem statement.
 **/
class Solution {

    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt(); // the number of temperatures to analyse
        
        if (n > 0) {
            int min = Integer.MAX_VALUE;
            
            for (int i = 0; i < n; i++) {
                int t = in.nextInt(); // a temperature expressed as an integer ranging from -273 to 5526
                System.err.println(t);
                if (Math.abs(t) < Math.abs(min)) {
                    min = t;
                }
                else if (Math.abs(t) == Math.abs(min)) {
                    if (t > 0) {
                        min = t;
                    }
                }
            }
    
            // Write an action using System.out.println()
            // To debug: System.err.println("Debug messages...");
            System.err.println("result: " + min);
            System.out.println(String.valueOf(min));
        }
        else {
            System.out.println("0");
        }
    }
}
{'fraction_non_alphanumeric': 0.1202775636083269, 'fraction_numerical': 0.008481110254433308, 'mean_word_length': 1.3686131386861313, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3612404', 'n_tokens_mistral': 361, 'n_tokens_neox': 340, 'n_words': 103}