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.*; | |
import java.math.*; | |
public class Main { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
BigInteger a = sc.nextBigInteger(); | |
BigInteger b = sc.nextBigInteger(); | |
int c = a.compareTo(b); | |
if (c < 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
import java.util.*; | |
import java.math.*; | |
public class Main { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
BigInteger[] f = new BigInteger[100]; | |
f[0] = BigInteger.ZERO; | |
f[1] = BigInteger.ONE; | |
for (int i=2; i<f.length; 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
import java.util.*; | |
import java.math.*; | |
public class Main { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
BigInteger a = sc.nextBigInteger(); | |
BigInteger b = sc.nextBigInteger(); | |
BigInteger sum = a.add(b); | |
System.out.println(sum.toString()); |
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.*; | |
import java.math.*; | |
public class Main { | |
public static void main(String args[]) { | |
BigInteger a = new BigInteger("9223372036854775807"); | |
BigInteger b = new BigInteger("9223372036854775808"); | |
BigInteger sum = a.add(b); | |
System.out.println(sum.toString()); | |
} |
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 sc = new Scanner(System.in); | |
int n = sc.nextInt(); | |
String s = sc.nextLine(); | |
System.out.println(n + "\n" + s); | |
} | |
} |
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 sc = new Scanner(System.in); | |
int a = sc.nextInt(); | |
int b = sc.nextInt(); | |
System.out.println(a+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
fprintf(stderr,"This is stderr. sum = %d, budget = %d\n",sum, budget); | |
cerr << "This is stderr. sum = " << sum << ", budget = " << budget << endl; |
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 <vector> | |
#include <string> | |
using namespace std; | |
class CucumberMarket { | |
public: | |
string check(vector <int> price, int budget, int k) { | |
} | |
}; |
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 <cstdio> | |
int main() { | |
int a[9]; | |
int n=9; | |
for (int i=0; i<n; i++) { | |
scanf("%d",&a[i]); | |
} | |
int l[9]; | |
for (l[0]=0; l[0]<n; l[0]++) { | |
for (l[1]=0; l[1]<n; l[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
#include <cstdio> | |
int main() { | |
int a[9]; | |
int n=9; | |
for (int i=0; i<n; i++) { | |
scanf("%d",&a[i]); | |
} | |
for (int l1=0; l1<n; l1++) { | |
for (int l2=0; l2<n; l2++) { | |
if (l1 == l2) continue; |