diff --git a/.DS_Store b/.DS_Store index 9b6c09a..d860022 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git "a/T3-\354\204\261\355\230\204/11724 \354\227\260\352\262\260\354\232\224\354\206\214.java" "b/T3-\354\204\261\355\230\204/11724 \354\227\260\352\262\260\354\232\224\354\206\214.java" new file mode 100644 index 0000000..52dd79b --- /dev/null +++ "b/T3-\354\204\261\355\230\204/11724 \354\227\260\352\262\260\354\232\224\354\206\214.java" @@ -0,0 +1,50 @@ +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.StringTokenizer; + +public class Main{ + static boolean visited[]; + static ArrayList[] A; + public static void main(String[] args) throws IOException{ + BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); + StringTokenizerst=new StringTokenizer(br.readLine()); //SyringTokenizer? + int n=Integer.parseInt(st.nextToken()); + int m=Integer.parseInt(st.nextToken()); + visited=new boolean[n+1]; //visted=Main(visited) + A=new ArrayList[n+1]; + (for int i=1;i(); + } + (for int i=0;i=0;i--){ + sb.append(array[i]); + } + System.out.println(sb); + } \ No newline at end of file diff --git "a/T3-\354\204\261\355\230\204/1427 \353\202\264\353\246\274\354\260\250\354\210\230 \354\240\225\353\240\254.java" "b/T3-\354\204\261\355\230\204/1427 \353\202\264\353\246\274\354\260\250\354\210\230 \354\240\225\353\240\254.java" new file mode 100644 index 0000000..0195226 --- /dev/null +++ "b/T3-\354\204\261\355\230\204/1427 \353\202\264\353\246\274\354\260\250\354\210\230 \354\240\225\353\240\254.java" @@ -0,0 +1,30 @@ +import java.util.Scanner; +import java.util.ArrayList; + +public class Main{ + public static void main(String[] args) { + Scanner sc=new Scanner(System.in); + String a=sc.next(); + int b[]=new int[a.length()]; + for(int i=0;ib[max]){ + max=j; + } + } + if(b[i] +#include +#include + +using namespace std; + +int sushi[3001]={0}; +int main() { + cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); + int n,d,k,c; + cin>>n>>d>>k>>>c; + vector dish(n); + for(int i=0;i>dish[i]; + + deque dq; + int result=0; + int cntt=0; + for(int i=0;ia[j+1]){ + int temp; + temp=a[j]; + a[j]=a[j+1]; + a[j+1]=temp; + } + } + } + for(int i:a){ + System.out.println(i); + } + } +} diff --git "a/T3-\354\204\261\355\230\204/2750.java" "b/T3-\354\204\261\355\230\204/2750.java" new file mode 100644 index 0000000..002d18a --- /dev/null +++ "b/T3-\354\204\261\355\230\204/2750.java" @@ -0,0 +1,43 @@ +#include +#include +#include +#include +using namespace std; +struct smp{ + bool operator()(int a,int b) { + if(abs(a)==abs(b)) + return a>b; + return abs(a)>abs(b); + } + }; +int main() { + int n,x; + priority_queue,cmp> q; + vector v; + cin >> n; + + for (int i=0;i> x; + if(x==0){ + if(q.empty()){ + v.push_back(0); + }else{ + v.push_back(q.top()); + q.pop(); + } + }else { + q.push(x); + } + } + for (int i=0;iList[List[str]]: + anagrams=collections.defaultdict(list) + + for word in strs: + anagrams[''.join(sorted(word))].append(word) + return list(anagrams.values()) + + + + +#History John von Neumann Merge Sort O(n log n) +#quick sort, Mergesort, Timsort + + +#sorted by Timsort timsort.c python.c + +""" +Chapter 51 +Optimistic Sorting and Information Theoretic Complexity +Peter McIlroy + + +Timsort + + +Joshua Bloch +Java Array, sort() + +"""