src stringlengths 95 64.6k | complexity stringclasses 7
values | problem stringlengths 6 50 | from stringclasses 1
value |
|---|---|---|---|
import java.util.Scanner;
public class LuckyDivison
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int inp = in.nextInt();
if(inp%4==0||inp%7==0||inp%47==0||inp%74==0||inp%447==0||inp%474==0||inp%477==0||inp%747==0||inp%774==0||inp%777==0)
{
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class Test{
public static void main(String[] args) {
Scanner in= new Scanner(System.in);
int n=in.nextInt();
if(n%7==0 || n%4==0 || n%47==0 || n%74==0 || n%447==0 || n%474==0 || n%477==0 || n%747==0 || n%774==0){
System.out.println("Y... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class A122 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (n % 4 == 0 || n % 7 == 0 || n % 44 == 0 || n % 47 == 0
|| n % 74 == 0 || n % 77 == 0 || n % 444 == 0 || n % 447 == 0
|| n % 474 == 0 || n % 477 == 0 ||... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String input = in.nextLine();
if (input.equals("1"))
System.out.println("NO");
else {
if (checkNum(input))
System.out.p... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
import java.io.*;
public class A {
ArrayList<Integer> list = new ArrayList<Integer>();
boolean valid(int n) {
Queue<Integer> q = new LinkedList<Integer>();
q.add(4);
q.add(7);
int crnt;
while(!q.isEmpty()) {
crnt = q.poll();
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
public class CF {
BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=null;
private void solution() th... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class LuckyDivision
{
public LuckyDivision(Scanner in)
{
int n;
n = in.nextInt();
if ( (n % 4 == 0) ||
(n % 7 == 0) ||
(n % 44 == 0) ||
(n % 47 == 0) ||
(n % 74 == 0) ||
(n % 77 == 0) ||
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class D
{
public static void main(String args[])
{
int n;
Scanner in = new Scanner (System.in);
n= in.nextInt();
if (n%4==0 || n%7==0 || n%44==0 || n%47==0 || n%444==0 || n%447==0 ||
n%474==0 || n%477==0 || n%744==0 || n%747==0 || n%774==0 || n%777==0)
System.out.... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* @author Son-Huy TRAN
*
*/
public class P122A_LuckyDivision {
private static boolean isLuckyNumber(int number) {
while (number > 0) {
int digit = number % 10;
if (digit != 4 && digit != 7) {
return false;
}
number /= 10;
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class Lucky {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if(n%4==0 || n%7==0 || n%47==0 || n%74==0 || n%474==0 || n%447==0 || n%774==0 || n%747==0 || n%477==0 || n... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
import java.io.*;
public class luckydivision {
public static int i(String s){
return Integer.parseInt(s);
}
public static boolean solve(String k, int n){
int temp = i(k);
if(temp > n){
return false;
}
if(n % temp == 0)
return true;
if(solve(k + "7", n))
return true;
retur... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class A122
{
public static void main(String aa[])
{
Scanner ob=new Scanner(System.in);
int n;
n=ob.nextInt();
if(n%4==0||n%7==0||n%44==0||n%47==0||n%444==0||n%447==0||n%474==0||n%477==0||n%744==0||n%747==0||n%774==0||n%777==0)
System.ou... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String a=buffer.readLine();
int b=Integer.parseInt(a);
if(b%4==0 || b%7==0 || b%44==0 || b%47==0 || b%74==0 || b%77==0 || b%4... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class LuckyDivision{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
if(a%4 == 0) System.out.println("YES");
else if(a%7 == 0) System.out.println("YES");
else if(a%47 == 0) System.out.p... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if ((n % 4 == 0) || (n % 7 == 0) || (n % 44 == 0) || (n % 47 == 0) || (n % 74 == 0) || (n % 77 == 0)
|| (n % 444 == 0) || (n % 44... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class Main{
public static void main(String[]args){
Scanner input=new Scanner(System.in);
int x=input.nextInt();
if(x%4==0||x%7==0||x%47==0||x%74==0||x%744==0||x%474==0||x%447==0||x%477==0||x%474==0)
System.out.println("YES");
else
System.out.println("NO");
}
} | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.TreeSet;
public class E {
static Scanner in; static int next() throws Exception {return in.nextInt();};
// static StreamTokenizer in; static int next() throws Exception {in.nextToken(); return (int) in.nval;}
// static BufferedReader in;
st... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class z3 {
public static boolean divch(int i,int a)
{ if (a>1000) return false; if ((a>0)&&(i%a==0)) return true; return (divch(i,a*10+4)||divch(i,a*10+7)); }
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
System.out.p... | constant | 122_A. Lucky Division | CODEFORCES |
//package arbuz;
import java.util.Scanner;
public class Arbuz {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n % 4 == 0 || n % 7 == 0 || n % 47 == 0 || n % 74 == 0 || n % 444 == 0 || n % 447 == 0 || n % 474 == 0 || n % 477 == 0) {... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Division {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int l = sc.nextInt();
String c = String.valueOf(l);
if (String.valueOf(c).contains("0") || String.valueOf(c).contains("1")
|| String.valueOf(c).contains("2")
|| String.value... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
if (n % 4 == 0 || n % 7 == 0 || n % 47 == 0 || n % 77 == 0 || n % 74 == 0 || n % 447 == 0 || n % 474 == 0 || n % 477 == 0 || n % 747 == 0 || n % 774 == 0 || n... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
/**
* Write a description of class lukno here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class lukno
{
public static void main (String args[])
{
Scanner i= new Scanner(System.in);
int n,p;
n=i.nextInt(); int t=n;
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.LinkedList;
public class LuckyNumbers {
public static void main(String[] args)throws IOException
{
BufferedReader scan=new BufferedReader(new InputStreamReader(System.in));
short num=Sh... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
System.out.println((n%4==0||n%7==0||n%47==0||n%74==0||n%447==0||n%474==0||n%477==0||n%744==0||n%747==0||n%774==0... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class A implements Runnable {
private void Solution() throws IOException {
int n = nextInt();
if (n % 7 == 0 || n % 4 == 0 || n % 47 == 0 || n % 74 == 0 || n % 747 == 0 || n % ... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class LuckyDivision {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if( n % 4==0 ||
n % 7==0 ||
n % 47==0 ||
n % 74==0 ||
n % 447==0 ||
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int in = sc.nextInt();
if(
in%4==0||
in%7==0||
in%44==0||
in%47==0||
in%74==0||
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Task122A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();
if ( (n % 4 == 0) ||
(n % 7 == 0) ||
(n % 44 == 0) ||
(n % 47 == 0) ||
(n % 74 == 0) ||
(n % 77 == 0) ||
(n %... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class A {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
Queue<Integer> q = new LinkedList<Integer>();
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class HelloWorld
{
public static void main (String args [])
{
Scanner read = new Scanner(System.in);
int n = read.nextInt();
int n1 = n; boolean q = true;
while (n1 > 0)
{
if (n % n1 == 0)
{
if (che... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution {
private static int n;
private static PrintWriter writer;
private static int maxstep;
private static void g(int src, int step) {
if (step != 0 && n % src == 0) {
writer.print("YES");
writer... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class LuckySubstring {
static int[] luck;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int i = -1;
boolean ehLuck = false;
preencheLucky();
while (n >= luck[+... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.PrintWriter;
import java.util.Scanner;
public class n122A {
Scanner in;
PrintWriter out;
void solve() {
int n = in.nextInt();
boolean good = false;
if (n % 4 == 0) {
good = true;
}
if (n % 7 == 0) {
good = true;
}
... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class x
{
public static void main(String args[])
{
Scanner obj=new Scanner(System.in);
int n;
String d="0";
n=obj.nextInt();
if(n%4==0 || n%7==0 || n%47==0 || n%74==0 || n%447==0 || n%474==0 || n%747==0)
d="YES";
else if(n%444==0... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int a[]={4,7,44,47,74,77,444,447,474,477,744,747,774,777};
int n=in.nextInt();
int i=0;
boolean yes=false;
while((i<14)&&(a[i]<=n)){
if(n%a[i]==0){
System.out.print("YES");
yes=tru... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
/**
* Write a description of class lukno here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class lukno
{
public static void main (String args[])
{
Scanner i= new Scanner(System.in);
int n,p;
n=i.nextInt(); in... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class Main {
StreamTokenizer in;
BufferedReader inb;
PrintWriter out;
public static void main(String[] args) throws Exception {
new Main().run();
}
public void run() throws Exception {
in = new StreamTokenizer(new BufferedReader(new... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class A_122 {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(bf.readLine());
Sy... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class lucky
{
public static void main(String args[]) throws IOException
{
BufferedReader cin=new BufferedReader(new InputStreamReader(System.in));
String s=cin.readLine();
int l=s.length();
int n=Integer.parseInt(s);
if(s.equals("47") || s.e... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
import java.util.StringTokenizer;
/**
* Created with IntelliJ IDEA.
* User: Саша
* Date: 08.08.12
* Time: 14:12
*/
public class LuckyDivision {
public final String check (String s) {
String result = "NO";
StringTokenizer stringTokenizer = new StringTokenizer(s, "47")... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class A_Lucky_Division {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int number=input.nextInt();
int flag=0;
if(number%4==0)flag=1;
else if(number%7==0)flag=1;
else if(number%47==0)flag=1;
else if(number%74==0)flag=1;
else if(number%44... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if ((n%4==0)||(n%7==0)||(n%44==0)||(n%47==0)||(n%74==0)||(n%77==0)||(n%444==0)||(n%447==0)||(n%474==0)||(n%477==0)||(n%744==0)||(n%747==0)||(n%77... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class Sol122A {
BufferedReader in;
StringTokenizer st;
PrintWriter out;
String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(in.readLine());
return st.nextToken();
}
int nextInt() throws Exception {
return I... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (((n % 4) == 0) || ((n % 7) == 0) || ((n % 44) == 0) || ((n % 47) == 0) || ((n % 74) == 0) || ((n % 77) == 0) || ((n % 444) == 0) || ((n % 447) == 0) || ((n % 474... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.*;
import java.util.*;
public class solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
boolean ok = (n % 4 == 0) || (n % 7 == 0) || (n % 47 == 0) || (n % 74 == 0) || (n % 447 == 0) || (n % 474 == 0) || (n % 477 == 0) || ... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class Solution {
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
int n=cin.nextInt();
if(n%4==0 || n%7==0 || n%44==0 || n%47==0 || n%74==0 || n%77==0 || n%444==0 || n%447==0 || n%474==0 ||
n%477==0 || n%744==0 || n%747==0... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.*;
public class MainClass {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int arr[] = {4,7,47,74,447,474,477,744,747,774};
int i=0, x = in.nextInt();
while (i<arr.length)
if (x%arr[i++] == 0)
{
System.out... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
public class CF {
BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=null;
private void solution() th... | constant | 122_A. Lucky Division | CODEFORCES |
import java.util.Scanner;
public class three {
static boolean check;
public static void main(String[] args) {
check = true;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s = n + "";
recurse(n, s.length(), "4");
if (!check)
System... | constant | 122_A. Lucky Division | CODEFORCES |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.Input... | constant | 1068_A. Birthday | CODEFORCES |
import java.util.*;
import java.math.*;
import java.io.*;
public class CF1068A {
public CF1068A() {
FS scan = new FS();
long n = scan.nextLong(), m = scan.nextLong(), k = scan.nextLong(), l = scan.nextLong();
long ceil = (k + l + m - 1) / m;
if(k + l <= n && ceil * m <= n) System.out.println(ceil);
else Sys... | constant | 1068_A. Birthday | CODEFORCES |
import java.io.*;
import java.util.*;
public class Codechef{
public static void main(String []args){
Scanner in = new Scanner(System.in);
long n=in.nextLong();
long m=in.nextLong();
long k=in.nextLong();
long l=in.nextLong();
long j=((k+l)/m);
if((k+l)%m!=0)j++;
if((k+l>n) || j*m>n) {
... | constant | 1068_A. Birthday | CODEFORCES |
import java.util.*;
public class Main {
static int mod = 1000000007;
static int size = 200000;
static long[] fac = new long[size];
static long[] finv = new long[size];
static long[] inv = new long[size];
static int INF = Integer.MAX_VALUE;
public static void main(String[] args){
Scanner scanner = new Scann... | constant | 991_D. Bishwock | CODEFORCES |
import java.io.*;
import java.util.*;
import java.math.*;
public class bhaa {
InputStream is;
PrintWriter o;
/////////////////// CODED++ BY++ ++ ++ ++ BHAVYA++ ARORA++ ++ ++ ++ FROM++ JAYPEE++ INSTITUTE++ OF++ INFORMATION++ TECHNOLOGY++ ////////////////
///////////////////////// Make it work, make it rig... | constant | 1080_A. Petya and Origami | CODEFORCES |
import java.util.Scanner;
public class origami {
public static void main(String args[]){
Scanner input = new Scanner(System.in);
double n = input.nextInt();
double k = input.nextInt();
double red = 0;
double green = 0;
double blue = 0;
double ans = 0;
red = (2 * n) / k;
green = (5 * n) / k;
blue ... | constant | 1080_A. Petya and Origami | CODEFORCES |
import java.awt.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long n = scanner.nextLong();
long x = scanner.nextLong(), y = scan... | constant | 1075_A. The King's Race | CODEFORCES |
import java.util.Scanner;
import javafx.geometry.Point2D;
public class ChessKing {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long size = input.nextLong();
long a = input.nextLong();
long b = input.nextLong... | constant | 1075_A. The King's Race | CODEFORCES |
//Author: Patel Rag
//Java version "1.8.0_211"
import java.util.*;
import java.io.*;
public class Main
{
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader(){ br = new BufferedReader(new InputStreamReader(System.in)); }
String next()
{
while (st == null |... | constant | 1075_A. The King's Race | CODEFORCES |
import java .util.*;
import java .io.*;
public class Main{
public static void main(String[]YAHIA_MOSTAFA){
Scanner sc =new Scanner(System.in);
long n=sc.nextLong(),x=sc.nextLong(),y=sc.nextLong();
long xb,xw,yb,yw;
xw=x-1;yw=y-1;xb=n-x;yb=n-y;
if (x==n&&y==n){
System.out.println("Black");return;
}
lon... | constant | 1075_A. The King's Race | CODEFORCES |
import java.util.*;
public class Pizza {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
long num = sc.nextLong() + 1;
sc.close();
System.out.println(num % 2 == 0 || num == 1 ? num / 2 : num);
}
}
| constant | 979_A. Pizza, Pizza, Pizza!!! | CODEFORCES |
import java.util.*;
public class A
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
if(n==0)
System.out.println(0);
else if(n%2==1)
System.out.println((n+1)/2);
else
System.out.println(n+1);
}
... | constant | 979_A. Pizza, Pizza, Pizza!!! | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long k = sc.nextLong();
System.out.println(solve(n, k));
sc.close();
}
static long solve(long n, long k) {
return Math.max(0, Math.min(n, k - 1) - ((k + ... | constant | 1023_B. Pair of Toys | CODEFORCES |
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
long n,s,p;
S... | constant | 1023_B. Pair of Toys | CODEFORCES |
import java.util.*;
import java.io.*;
public class Soldiers {
public static void main(String[] args) throws IOException {
new Soldiers().run();
}
void run() throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
pw = new PrintWriter(System.out);
int n = nextInt();
pw.println(3 *... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]) throws Exception
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
int num=Integer.parseInt(in.readLine());
System.out.println((num/2)*(3));
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n=i... | constant | 84_A. Toy Army | CODEFORCES |
public class A {
public static void main(String[] args) {
System.out.println(new java.util.Scanner(System.in).nextInt() / 2 * 3);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
//package Codeforces72;
import java.util.Scanner;
public class A {
/**
* @param args
*/
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
System.out.println((int)(n+n/2));
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.*;
import java.io.*;
public class C72A{
static BufferedReader br;
public static void main(String args[])throws Exception{
br=new BufferedReader(new InputStreamReader(System.in));
long n=toLong();
long res=n+n/2;
System.out.println(res);
}
/***********... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main implements Runnable {
private final String problemname = "";
private final String FILE_IN = problemname + ".in";
private final String FILE_OUT = problemname + ".out";
public void run() {
// in = new BufferedReader(new Fil... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;
import java.text.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int T =sc.nextInt();
int t =T/2;
System.out.println(t*3);
}
} | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class ToyArmy {
public static void main(String[] args) {
int n = new Scanner(System.in).nextInt();
System.out.println(n + n / 2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
public class Main {
private BufferedReader input;
private PrintWriter output;
private StringTokenizer stoken;
String fin = "input";
String fout = "output";
private void solve() {
long a = nextInt();
long res = (a / 2) * 3;
... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class A {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedReader r=new BufferedReader(new InputStreamReader(System.in));
String s=r.readL... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.*;
public class A72 {
public static void main (String[] args){
Scanner in = new Scanner(System.in);
int n = in.nextInt();
System.out.println(n * 3 / 2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class ToyArmy {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
System.out.println(n / 2 + n);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.*;
import java.io.*;
public class A
{
public static void main(String[] args)
{
Kattio io = new Kattio(System.in);
int n = io.getInt();
int ans = 0;
int V = n;
int A = n;
A -= n/2;
ans += n/2;
V -= A;
ans += A;
... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int in = sc.nextInt();
System.out.println(in/2 + in);
System.exit(0);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.StringTokenizer;
public class CF {
public static void main(String[] args) throws IOException {
Scanner sc=new Scanner(System.in);
PrintW... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
System.out.println(3 * (n / 2));
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.math.BigInteger;
import java.util.*;
/**
* Created by IntelliJ IDEA.
* User: piyushd
* Date: 4/13/11
* Time: 8:07 PM
* To change this template use File | Settings | File Templates.
*/
public class TaskA1 {
void run(){
int n = nextInt();
int ans = 2 * n - (n / 2);
System.... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.PrintStream;
import java.util.Scanner;
public class Cfbra {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
PrintStream out = System.out;
out.println(in.nextInt() / 2 * 3);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(3 * n / 2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Govnokod {
public static void main(String args[]) {
try {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
while (true) {
String str = br.readLine();
int i = Integer... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
public class N72A
{
StreamTokenizer in;
PrintWriter out;
int nextInt() throws IOException
{
in.nextToken();
return (int) in.nval;
}
double nextDouble() throws IOException
{
in.nextToken();
return in.nval;
}
public void init() thro... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class MainA {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int count = 0;
count = n/2;
count = count + (n - n/2);
n = n - n/2;
... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
int n = new Scanner(System.in).nextInt();
System.out.println(n*3/2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
public class TemplateBuf implements Runnable{
private void solve() throws Exception {
long n = nextUnsignedLong();
out.println(n... | constant | 84_A. Toy Army | CODEFORCES |
import java.awt.Point;
import java.io.*;
import java.math.BigInteger;
import java.util.*;
import static java.lang.Math.*;
public class ProblemA_72 {
final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE")!=null;
BufferedReader in;
PrintWriter out;
StringTokenizer tok = new StringTokenize... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: 13.05.11
* Time: 23:21
* To change this template use File | Settings | File Templates.
*/
public class ToyArmies {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
long n = in.... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
import java.math.*;
public class A {
private void solve() throws IOException {
int n = nextInt();
int r = n;
n *= 2;
n -= (0.5*r);
System.out.println(n);
}
public static void main(String[] args) {
new A().run();
}
... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.IOException;
import java.util.Locale;
import java.util.Scanner;
public class A {
private void processInput() throws IOException {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
long res = go(n);
System.out.printf(Locale.ENGLISH, "%d\n", res);
in.close();
}
pri... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
import static java.lang.Math.*;
public class BetaRound72_Div2_A implements Runnable {
final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
BufferedReader in;
PrintWriter out;
StringTokenizer tok = new StringTokenizer("");
void init() throws IOException ... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.StringTokenizer;
/**
... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
public class Main {
public void solve() throws IOException {
int n = nextInt();
output.println(n / 2 * 3);
}
public void run() throws IOException {
input = new BufferedReader(new InputStreamReader(System.in));
output = new PrintWriter(... | constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
System.out.println(n/2*3);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int n = read.nextInt();
System.out.println(n*3/2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n + n / 2);
}
}
| constant | 84_A. Toy Army | CODEFORCES |
import java.io.*;
import java.util.*;
public class Main {
StreamTokenizer in;
PrintWriter out;
public static void main(String[] args) throws Exception {
new Main().run();
}
public void run() throws Exception {
in = new StreamTokenizer (new BufferedReader(new InputStreamReader(Sys... | constant | 84_A. Toy Army | CODEFORCES |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
public class A {
private static StreamTokenizer in;
private static PrintWriter out;
private static int nextInt() throws Exception{
in.nextToken();
return (int)in... | constant | 84_A. Toy Army | CODEFORCES |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.