This file contains 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
public class NAME{} | |
public static void main (String[] args) throws IOException{} | |
============================================================================================== | |
?)Ввод данных BufferedReader | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); | |
1)String a = r.readLine(); | |
2)int a = Integer.parseInt(r.readLine()); |
This file contains 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.io.IOException; | |
public class olimp4 { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
long a = in.nextLong(), b = in.nextLong(),c = in.nextLong(),max=0; | |
for (long i = 1; i <=a/c; i++) { | |
if((i*c)%b==0)continue; | |
max+=i*c; |
This file contains 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.io.IOException; | |
public class svidanie { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
int a = in.nextInt(),b = in.nextInt(),c = in.nextInt(); | |
System.out.println(Math.abs(a)+Math.abs(b)<=c&&(c-b-a)%2==0?"Yes":"No"); | |
} | |
} |
This file contains 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.io.IOException; | |
public class instrument { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
int a = in.nextInt(),b = in.nextInt(),summ=0; | |
int[] array= new int[a]; | |
ArrayList<Integer> array2 = new ArrayList<Integer>(); | |
ArrayList<Integer> array3 = new ArrayList<Integer>(); |
This file contains 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.io.IOException; | |
public class Main { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
long sila = in.nextLong(); | |
int n = in.nextInt(); | |
String finish = "YES"; | |
int[][] array = new int[n][2]; |
This file contains 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.Date; | |
import java.util.Scanner; | |
import java.util.TreeSet; | |
/** | |
* Created by ТРАКС on 17.04.15. | |
*/ | |
public class Leks_Poryadok { | |
public static void main(String[] args) throws InterruptedException { | |
Scanner in = new Scanner(System.in); |
This file contains 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.io.IOException; | |
public class vidrizki { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
int a = in.nextInt(); | |
HashSet<Long> array = new HashSet<Long>(); | |
for (int i = 0; i <a; i++) { | |
long b = in.nextLong(); |
This file contains 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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Windows.Forms.DataVisualization.Charting; |
This file contains 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 noob { | |
static int max; | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
int n = in.nextInt(),m = in.nextInt(); | |
int[][] a = new int[n][m]; | |
for (int i = 0; i < n; i++) | |
for (int j = 0; j < m; j++) a[i][j] = in.nextInt(); |
This file contains 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.io.IOException; | |
public class Main { | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner in = new Scanner(System.in); | |
long n = in.nextLong(),m = in.nextLong(); | |
System.out.println(lcm(n,m)); | |
} | |
public static long lcm(long a,long b){ |
OlderNewer