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 <stdlib.h> | |
| #include "linkedlist.h" | |
| linkedList newLinkedList(int value){ | |
| linkedNode node = (linkedNode) malloc(sizeof(linkedNode)); | |
| node->value = value; | |
| node->next = NULL; | |
| return node; |
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
| def f(speedMax, speedBike, distance, delay): | |
| n = 0 | |
| distance -= delay * speedBike | |
| t = 5 / speedMax | |
| distance -= t * speedBike | |
| while distance < 0 and n < 10: |
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
| import java.util.Iterator; | |
| import java.util.NoSuchElementException; | |
| public class LinkedList<T> implements Iterable<T>{ | |
| private ListNode<T> front; | |
| private int size = 0; | |
| public LinkedList(){ | |
| front = null; | |
| } |
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
| Global Variables: | |
| //@font-size: 12 | |
| //@font-face: Arial | |
| //@line-height: 18 | |
| //@begin-document | |
| {header} | |
| Header: Default Level 1 |
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
| temp = '44.76 -67 87.5 0 12 86.89 90'.split(' '); #input().split(' '); | |
| temp = sum(float(n) for n in temp) / len(temp); | |
| temp = (5 / 9) * (temp - 32); | |
| print (temp); |
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
| grades = input(); | |
| grades = grades.split(', '); | |
| letters = [('A', 90), ('B', 75), ('C', 65), ('D', 60), ('F', 0)]; | |
| output = ''; | |
| for grade in grades: | |
| for letter in letters: | |
| if int(grade) >= letter[1]: |
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
| <?php | |
| /** | |
| * Canvas | |
| * | |
| * A super simple, super flexible forum. | |
| * | |
| * Released under the WTFPL. | |
| * http://www.wtfpl.net/ | |
| * |
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
| <?php | |
| /** | |
| * Canvas | |
| * | |
| * A super simple, super flexible forum. | |
| * | |
| * Released under the WTFPL. | |
| * http://www.wtfpl.net/ | |
| * |
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
| import java.io.IOException; | |
| import java.io.ObjectOutputStream; | |
| import java.net.Socket; | |
| import java.net.UnknownHostException; | |
| public class client { | |
| public static void main(String[] args){ | |
| try { | |
| Socket socket = new Socket("192.168.1.59", 666); |
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.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Forms; | |
| using System.Threading; |