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 com.example.oss_example; | |
| import androidx.annotation.NonNull; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import android.content.ContentValues; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.database.sqlite.SQLiteDatabase; | |
| import android.database.sqlite.SQLiteOpenHelper; |
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
| Prim(G, r) | |
| for each u ∈ V[G] | |
| key[u] = ∞ | |
| pi[u] = -1 | |
| visited[u] = NIL | |
| end | |
| key[r] = 0 | |
| P = V[G] | |
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.Arrays; | |
| import java.util.Random; | |
| public class NQueensGeneticAlgorithm { | |
| private static final int POPULATION_SIZE = 100; | |
| private static final double MUTATION_RATE = 0.05; | |
| private static final int MAX_GENERATIONS = 1000; | |
| private static final Random random = new Random(); |
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
| //https://github.com/SiwonLim/Algorithm_PS_2022/blob/master/src/Java/prac_20220316.java | |
| import java.io.*; | |
| import java.util.*; | |
| //BOJ_15651_N과 M (3) | |
| public class Main { | |
| static int N,M; | |
| static int[] selected; | |
| static StringBuilder sb = new StringBuilder(); | |
| //input은 외워주자! |
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.IO; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| public partial class CustomScript | |
| { |
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
| { | |
| "data": { | |
| "aid": "25", | |
| "file": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgkAAADbCAIAAABoaZWiAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAonSURBVHhe7d0xfuJGGwdg-zuLSZFfToBPAGlSpU0HpWnSpUyXBpemS7tVmsAJzAnySxH7LvtJQl7bGGYkIaERfp4mxN7seiPQf94ZzbxXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACJma2_Hreelb8KPvpf-c_hCr77n5bj8pcBl268fCo_-Qdc4M2g0-hPMhs-2xUGSMzw6wYA2iYbANgnG-CcxuPZcrleP2XKWdJS_pX1ejkbmzMlBbLhDIIrRp4W-RyyTFjnafD4-HB3N5ncZMrvlPKvTCZ3D4-P2a96ykOi_Ab0oVI2hO9tTVlUTlo3F_1Ew8zRIhWyTJjspUHATR4SWUKkHBBnfYf0ebfo96PQ299c3QAdGi_XT7VS4a2bycNjVkEYQ9ED2QAdyeuFx7uGufAiqyCyfDDvyLnJBujEbN24XtiX1Q-WpTgz2QDtGy-fHibl63ZMHizQcU6yAdqWlQx37VQMb93cPSoeOBvZ0L3x96Py1UGj7w0HL8psXaFkeN7cz29vr1_c3s7vN8_l946bPEgHzkQ2dO-H74JjyJvvfihfcQHiyfC8md9ej6aL1XZbfuXqartdLaaj69t5LCAmv5pZ4ixOz4bNvBz61DVavH40Ltnsp8i9YvLT4MaCz_evQ95zmq7KHyBV4-Wv4audBcNoujr2zt-upqPb-2A83Nz9OYR0aHBbiPzF-7Oalj9hVfNN-V |
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; | |
| //알고리즘 인강 복습 | |
| public class Main { | |
| static StringBuilder sb = new StringBuilder(); | |
| static int N,M;//N개중에 M개 | |
| static int[] selected; | |
| private static void input(){ | |
| Scanner scanner = new Scanner(System.in); | |
| N = scanner.nextInt(); |
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.Arrays; | |
| class Solution { | |
| public int solution(int n, int[][] computers) { | |
| int answer = 0; | |
| boolean[] check = new boolean[n]; | |
| Arrays.fill(check,false); | |
| for(int i = 0 ; i < n ; i++){ | |
| if(check[i] == false){ | |
| network(i, computers, check); | |
| answer++; |
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.IO; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Text; | |
| using Excel = Microsoft.Office.Interop.Excel; | |
| public partial class CustomScript | |
| { |
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.IO; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Text; | |
| using Excel = Microsoft.Office.Interop.Excel; | |
| public partial class CustomScript | |
| { |
NewerOlder