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 { | |
| public static void main (String[] args) { | |
| Scanner in = new Scanner(System.in); | |
| int id = in.nextInt(); | |
| double balance = in.nextDouble(); | |
| double rate = in.nextDouble(); | |
| Account account = new Account(id, balance, rate); |
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 void main(String[] args){ | |
| Scanner in = new Scanner(System.in); | |
| double n = in.nextDouble(); | |
| System.out.print("a("+(int)n+")="+f(n)); | |
| } | |
| public static double f(double n){ | |
| if(n==1) return 1; | |
| else return (n/(n+1))*f(n-1); |
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
| // Witchcraft | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int ncase; | |
| cin >> ncase; | |
| while(ncase--){ |
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
| //deadline deadline and deadline | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct in{ | |
| int time; | |
| int dead; | |
| }Data; | |
| int cmp(const void *a, const void *b) |
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> | |
| int mult(int a[],int na, int b[],int nb, int c[]) | |
| { | |
| int i,j; | |
| for(i=0;i<=na+nb;i++){ | |
| c[i]=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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAX 1001 | |
| #define LEN 2600 | |
| int num[1001][2601]; | |
| int main() | |
| { |
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> | |
| //多項式 | |
| int mult(int a[],int na, int b[],int nb, int c[]) | |
| { | |
| int i,j; | |
| for(i=0;i<=na+nb;i++){ | |
| c[i]=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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() | |
| { | |
| int n,m; | |
| while(scanf("%d %d", &n, &m)){ | |
| if(n==0&&m==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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <ctype.h> | |
| #include <string.h> | |
| int main() | |
| { | |
| int n,i,j,len,max; | |
| scanf("%d",&n); | |
| char a[10000]={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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <ctype.h> | |
| #include <string.h> | |
| int main() | |
| { | |
| int n,i,j,len,max; | |
| scanf("%d",&n); | |
| char a[10000]={0}; |
NewerOlder