Skip to content

Instantly share code, notes, and snippets.

View ShawnSWu's full-sized avatar
😎

Shawn Wu ShawnSWu

😎
View GitHub Profile
import java.util.*;
public class Main {
static double minAvg;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("輸入機率 用,相隔。");
String input = sc.nextLine();
String[] inputArray = input.split(",");
import java.util.ArrayList;
import java.util.List;
public class Main {
// private static int graph[][] = {
// {0, 1, 0, 1, 0},
// {1, 0, 1, 1, 1},
// {0, 1, 0, 0, 1},
// {1, 1, 0, 0, 1},
import java.util.ArrayList;
import java.util.List;
public class Main {
//起始點
static int origin = 0;
static int graph[][] = {{0, 1, 1, 0, 1},
{1, 0, 1, 1, 1},
{1, 1, 0, 1, 0},
import java.util.ArrayList;
import java.util.List;
public class Main {
//起始點
static int origin = 0;
//紀錄已經找到的路徑
static List<List<Integer>> alreadyFindPath = new ArrayList<>();
import java.util.Collections;
import java.util.InputMismatchException;
import java.util.LinkedList;
import java.util.Scanner;
public class MyMergeSort {
static LinkedList divide (LinkedList list) {
public class CreateGroupActivity extends AppBaseActivity {
private ActivityCreateGroupBinding binding;
private CreateGroupImageSelectorAdapter groupImageSelectorAdapter;
private int selected_position = -1;
private ArrayList<CreateGroupImageSelectorItem> list = new ArrayList<>();
private static KProgressHUD lodingview;
private String account;
private ArrayList<CreateGroupImageSelectorItem> getImageList(){
<script type='text/javascript'>
function _id(e){return document.getElementById(e)}
_id('myfile').onchange = function(){
var theFile = this.files;
if(theFile.length === 1){
var uploader = new XMLHttpRequest();
<script type='text/javascript'>
function _id(e){return document.getElementById(e)}
_id('myfile').onchange = function(){
var theFile = this.files;
if(theFile.length === 1){
var uploader = new XMLHttpRequest();
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/folderPath_horizontalScrollView"
android:layout_width="match_parent"
android:layout_height="@dimen/actionbar_height"
android:fadeScrollbars="false"
android:fillViewport="true"
android:scrollbarThumbHorizontal="@drawable/folder_path_scrollbar_thumb"
android:splitMotionEvents="false">
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.CountDownTimer;