Tipo de dato | Nombre | Uso | Dónde se puede consultar más sobre él |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class Main { | |
public static void main(String [] args) { | |
Scanner cin = new Scanner(System.in); | |
int T = cin.nextInt(); | |
for (int c = 0; c < T; ++c) { | |
int n = cin.nextInt(); | |
int a[] = new int[n]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:55 | |
1:55 | |
12:12 | |
1:00 | |
2:00 | |
12:19 | |
12:46 | |
9:00 | |
10:16 | |
7:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Accepted | |
*/ | |
#include <iostream> | |
#include <climits> | |
#include <vector> | |
#include <cstdio> | |
#include <queue> | |
//#include <cassert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA21RWHrHDVTqFH6kh8hxLQRQJxcYgAWBdFUCoOx1sg9clOatxEVodrLm/L9mzKRTq1PI2QGOF0mNaJRc0YbkBL29NiQbb/CITAU2ge8ciV/YeJUcBfmJBZmkG8U/Q8g3W26F0CmqQXfD+80UQxcPR0gaLxTB291OnRAlVFMjqVkURZLd3jXNxSbbdZVLXl7ux3SfERfwXNiQRkzs0AEyUHrLdkmshYi/WgMRA/XeN2xH59rj6LqGB9XQdjeladWZuHq2LhcXi6TNZhBknWB8KoTehcgbA5Z4Z02V0/38l23Fti9CEXuIohZB4yFTzhGlNlzQgP8qooXYD0EVUylUHdQ== wack-a-mole@mischa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
if ARGV.size < 3 | |
puts "Usage: #{__FILE__} <testdata.in> <program.out> <testdata.out>" | |
exit 1 | |
end | |
in_file = ARGV[0] | |
team_file = ARGV[1] | |
ans_file = ARGV[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
password = ARGV[0] | |
base = Dir.pwd | |
Dir.glob("*").select { |f| File.directory?(f) }.each do |dir| | |
Dir.chdir File.join(base, dir) | |
unless File.exists?("domjudge-problem.ini") | |
puts "domjudge-problem.ini not found. Skipping #{dir}." | |
next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Andrés Mejía | |
using namespace std; | |
#include <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <numeric> | |
#include <sstream> | |
#include <fstream> | |
#include <cassert> | |
#include <climits> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def wrong_answer(reason) | |
puts "Wrong Answer: #{reason}" | |
exit(0) | |
end | |
# Checks if array is a permutation of the numbers 1, 2, 3, ..., 2 ** n - 1 | |
def check_permutation(array, n) | |
valid_permutation = (1..2 ** n - 1).to_a | |
if array.size != valid_permutation.size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js"></script> | |
<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/string/string.js"></script> | |
<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/format/emailaddress.js"></script> | |
</head> | |
<body> | |
<h1>Parsed addresses</h1> | |
<script> | |
var addresses = '[email protected], "Scarlett Johansson" <[email protected]>, <[email protected]>, "Johansson, Scarlett" <[email protected]>'; |