This file contains hidden or 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
| #include <bits/stdc++.h> | |
| using namespace std; | |
| int main() | |
| { | |
| int n; | |
| while (scanf("%d", &n) != 0) | |
| { | |
| queue<int> entrada; |
This file contains hidden or 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
| package br.unb; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| public class Gabs | |
| { | |
| private static final int TNAIPES = 4, TTIPOS = 13; | |
| private static ArrayList<Carta> cartas = new ArrayList<>(); |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <algorithm> | |
| #define MAXN 60 | |
| struct Camiseta | |
| { | |
| char cor[MAXN], nome[MAXN]; | |
| char tamanho; |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() | |
| { | |
| unsigned long long int n_estrs = 0; | |
| scanf("%llu", &n_estrs); | |
| unsigned long long int est_atacadas = 0, carnTotal = 0, carnRoubado = 0; | |
| unsigned long long int estrelas[n_estrs]; |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() | |
| { | |
| int tempo; | |
| scanf("%d", &tempo); | |
| tempo /= 1000; | |
| int hours = (tempo-(tempo%60))/3600; |
This file contains hidden or 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
| #pragma once | |
| #include <string> | |
| class FBullCowGame | |
| { | |
| public: | |
| void reset(); // TODO make a more rich return value | |
| int getMaxTries(); | |
| int getCurrTries(); | |
| bool isGameWon(); |
This file contains hidden or 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
| #include "FBullCowGame.h" | |
| void FBullCowGame::reset() | |
| { | |
| return; | |
| } | |
| int FBullCowGame::getMaxTries() | |
| { | |
| return 0; |
This file contains hidden or 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
| bool canPlayAgain() | |
| { | |
| counter++; | |
| return counter >= max ? false : true; | |
| } | |
| void checkGuess(std::string answer) | |
| { | |
| std::string guess = getGuess(); | |
| std::cout << "\nYour guess was: " << guess << std::endl; |
This file contains hidden or 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
| static Tree[] trees; | |
| public static void main(final String[] args) | |
| { | |
| final Scanner s = new Scanner(System.in); | |
| final int rem = s.nextInt(); | |
| final int D = s.nextInt(); | |
| trees = new Tree[rem]; |