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
using System; | |
using System.Linq; | |
using CampusSquare; | |
class Example2 { | |
public static void Main() { | |
var grades = new CampusSquare.DummyCampusSquare("record.html").GetGrades(); | |
Console.WriteLine("GPA: " + ( |
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
using System; | |
using System.Linq; | |
using CampusSquare; | |
class Example2 { | |
public static void Main() { | |
var grades = new CampusSquare.DummyCampusSquare("record.html").GetGrades(); | |
Console.WriteLine("GPA: " + ( |
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 <algorithm> | |
#include <iostream> | |
#include <vector> | |
class Team { | |
private: | |
int resolve, time; | |
std::vector<int> failures; |
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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <unordered_set> | |
#include <vector> | |
int read_i() { | |
int t; | |
std::cin >> t; |
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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <set> | |
#include <vector> | |
class Position { | |
private: | |
int x, y; |
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 <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
struct { | |
int_fast32_t x, y; | |
} typedef Position; | |
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 <cmath> | |
#include <iostream> | |
int withoutTax(int cost, int tax){ | |
return std::ceil(cost * 100.0 / (100.0+tax)); | |
} | |
int withTax(int cost, int tax){ |
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 <iostream> | |
#include <set> | |
class Position { | |
const int x, y; | |
public: | |
Position(int x, int y) : x(x), y(y) { } |
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 <iostream> | |
#include <iterator> | |
#include <memory> | |
namespace funnycounter { | |
namespace item { | |
namespace interface { | |
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
#define func(name, expression, ...) int name(__VA_ARGS__){ return expression; } | |
int PutC(char c){ char*t=&c; asm("mov $1,%%rax\nmov $1,%%rdi\nmov %0,%%rsi\nmov $1,%%rdx\nsyscall" :: "m"(t)); return 0; } | |
func(PutS, *string && PutC(*string) & PutS(string + 1), char* string); | |
func(EndL, PutC(0x0a)); | |
func(Fizz, PutS((char*)__func__)); |