Suppose that (a) is any positive integer, we must show that
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.Scanner; | |
interface Operator { | |
int calc(int a, int b); | |
} | |
class Add implements Operator { | |
public int calc(int a, int b) { return a + b; } | |
} | |
class Sub implements Operator { |
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; | |
namespace PreExceed_Karaoke | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> l = new List<int>(); |
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
" rainbow comments!! | |
let s:currentcolor = 9 | |
function! ChangeColor() | |
let s:currentcolor += 1 | |
if s:currentcolor >= 15 | |
let s:currentcolor = 9 | |
end | |
exe "hi Comment ctermfg=" . s:currentcolor | |
endfunction |
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
print("Enter your name: ") | |
puts("Hello, " + gets()) |
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.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import org.mozilla.javascript.*; | |
public class Main { | |
static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); |
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.*; | |
public class SortByLength { | |
private static Scanner scanner = new Scanner(System.in); | |
public static void main(String[] args) { | |
String[] strings = new String[Integer.parseInt(scanner.nextLine())]; | |
for (int i = 0; i < strings.length; i ++) { | |
strings[i] = scanner.nextLine(); | |
} | |
Arrays.sort(strings, new Comparator<String>() { |
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
<script type="text/x-mathjax-config">MathJax.Hub.Config({ TeX: { Macros: { | |
'NOT': '{\\sim}' | |
, 'AND': '\\wedge' | |
, 'OR': '\\vee' | |
, 'IMPL': '\\rightarrow' | |
, 'IMPLL': '\\Rightarrow' | |
, 'IFF': '\\leftrightarrow' | |
, 'IFFF': '\\Leftrightarrow' | |
, 'EQUIV': '\\equiv' | |
, 'taut': '\\textbf{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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
#define DEBUG 1 | |
typedef struct CELL *LIST; |