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
    
  
  
    
  | #define _CRT_SECURE_NO_WARNINGS | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| struct Node | |
| { | |
| char name[20]; | |
| char nim[30]; | |
| int score; | |
| }minHeap[101010]; | 
  
    
      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
    
  
  
    
  | #define _CRT_SECURE_NO_WARNINGS | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| struct Node | |
| { | |
| char name[20]; | |
| char nim[30]; | |
| int score; | |
| }maxHeap[101010]; | 
  
    
      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 Main | |
| { | |
| public static int Max3(int bil1, int bil2, int bil3) | |
| { | |
| int max = bil1; | |
| if(max<bil2) | |
| max = bil2; | |
| if(max<bil3) | 
  
    
      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 Lingkaran | |
| { | |
| private static final float Pi = 3.14159265359f; | |
| private float diameter = 0f; | |
| private void setDiameter(float diameter) | |
| { | |
| this.diameter = diameter; | |
| } | |
| private float getDiameter() | 
  
    
      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<string.h> | |
| #include<stdlib.h> | |
| struct KeretaExpress | |
| { | |
| char expressName[100]; | |
| int isACAvailable; | |
| int isColokanAvailable; | |
| int remainingSeat; | |
| int reservedSeat; | 
  
    
      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> | |
| void cetakLogPermintaan(int jumlahPermintaan, int listPermintaan[]) | |
| { | |
| printf("\nList Permintaan:\n\n"); | |
| for(int i=0; i<jumlahPermintaan; i++) | |
| { | |
| printf("Permintaan %d : %d\n",i,listPermintaan[i]); | |
| } | |
| printf("\n\n"); | |
| } | 
  
    
      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
    
  
  
    
  | #define _CRT_SECURE_NO_WARNINGS | |
| #include<stdio.h> | |
| int main() | |
| { | |
| int t,passedTimeInSecond,hour,minute,second; | |
| scanf("%d",&t); | |
| rewind(stdin); | |
| for(int i=0; i<t; i++) | |
| { | 
  
    
      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; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| int input = int.Parse(Console.ReadLine()); | |
| for(int i=1; i<=input; i++) | |
| { | |
| for(int j=1; j<=i; j++) | 
  
    
      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
    
  
  
    
  | #define _CRT_SECURE_NO_WARNINGS | |
| #include<stdio.h> | |
| #include <algorithm> | |
| //Digunakan untuk memisahkan print yang sesungguhnya dengan print untuk debug | |
| #define debugPrint printf | |
| int getIndexLimit(int arrayData[], int dataCount, int limitSum) | |
| { | |
| //Handle exception | |
| if (dataCount <= 0) | 
  
    
      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
    
  
  
    
  | #define _CRT_SECURE_NO_WARNINGS | |
| #include<stdio.h> | |
| #include<math.h> | |
| #define debugPrint printf | |
| int main() | |
| { | |
| float L, b, P, h; | |
| float E, I, d; | |
| E = 2.07 * pow(10, 11); | |
| debugPrint("E:%.2f\n", E); | 
OlderNewer