Source stringclasses 1
value | Date int64 2.01k 2.02k | Text stringlengths 22 783k | Token_count int64 20 394k |
|---|---|---|---|
Project_CodeNet | 2,019 | parseInt(x)=parse(Int,x)
parseMap(x::Array{SubString{String},1})=map(parseInt,x)
function main()
a = readline() |> split |> parseMap
a = sort(a)
println(div(a[1]*a[2],2))
end
main()
| 59 |
Project_CodeNet | 2,019 | parseInt(x) = parse(Int,x)
a=map(parseInt,split(readline()))
b=sort(a)
print(Int((b[1]*b[2])/2)) | 36 |
Project_CodeNet | 2,020 | l=[parse.(Int,split(readline()));0]
println(Int(sqrt(prod(l.-sum(l)/2)))) | 23 |
Project_CodeNet | 2,020 | parseInt(x) = parse(Int, x)
parseFloat(x) = parse(Float64, x)
parseMap(x::Array{SubString{String},1}) = map(parseInt, x)
function main()
a,b,c=parseMap(split(readline()))
println(div(a*b,2))
end
main() | 64 |
Project_CodeNet | 2,019 | a,b,c=map(x->parse(Int,x),split(readline()))
print(div(a*b*c,2*max(a,b,c))) | 28 |
Project_CodeNet | 2,019 | const lines=readlines(open("/dev/fd/0"))
let
state=0
global input
input()=lines[state+=1]
end
int(s::String)=parse(Int32,s)
intSub(s::SubString{String})=parse(Int32,s)
intLine()=map(intSub,split(input()))
function main()
a,b,_=sort(intLine())
print(Int(a*b/2))
end
main() | 94 |
Project_CodeNet | 2,020 | function main()
A = map(x -> parse(Int,x), split(readline()))
sort!(A)
println(div(A[1]*A[2],2))
end
main() | 43 |
Project_CodeNet | 2,019 | #include<stdio.h>
int main(void){
char *s="python3 -c\""
"a,b,_=map(int,input().split())\n"
"print(a*b//2)\n"
"\"";
system(s);
return 0;
} | 54 |
Project_CodeNet | 2,019 | #import <Foundation/Foundation.h>
#import <stdlib.h>
#import <stdarg.h>
typedef NSInteger Int;
#ifndef _OS_OSTYPES_H
typedef NSUInteger UInt;
#endif
@interface NSString (Extension)
-(NSMutableArray*)componentsSeparatedByCharacter:(unichar)separator;
-(NSMutableArray*)numbersSeparatedByString:(NSString*)separator;
-(NSM... | 2,553 |
Project_CodeNet | 2,019 | #!/bin/bash
read SIDE1 SIDE2 SIDE3
echo $((SIDE1*SIDE2/2)) | 23 |
Project_CodeNet | 2,019 | read a b c
d=$(($a * $b))
e=$(($d/2))
echo $e
| 24 |
Project_CodeNet | 2,020 | #!/usr/local/gnu/bin/bash
e=(`tr ' ' '\n' | sort -n`)
echo $((e[0]*e[1]/2))
| 35 |
Project_CodeNet | 2,019 | read a b c;echo $[a*b*c/2/(a>b?(a>c?a:c):(b>c?b:c))] | 28 |
Project_CodeNet | 2,019 | read a b c;
m=$a;
if [ $m -lt $b ];then
m=$b;
fi
if [ $m -lt $c ];then
m=$c;
fi
echo $[a*b*c/m/2] | 55 |
Project_CodeNet | 2,019 | 'use strict'
function Main(input) {
const lines = input.split('\n')
const inputs = lines[0].split(' ')
const ab = inputs[0]
const bc = inputs[1]
console.log((ab * bc) / 2)
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'))
| 73 |
Project_CodeNet | 2,019 | function Main(input) {
input = input.split(" ");
nums = input.map(input=>parseInt(input,10))
var AB = nums[0];
var BC = nums[1];
var CA = nums[2];
var S = AB * BC/2;
console.log(S);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 82 |
Project_CodeNet | 2,019 | var area = (input) => {
var lengthList = input.split(' ');
var varticalLength = Number.parseInt(lengthList[0]);
var horizontalLength = Number.parseInt(lengthList[1]);
console.log(`${varticalLength * horizontalLength / 2}`);
}
process.stdin.resume();
process.stdin.setEncoding('utf8');
var inputString = '';
... | 109 |
Project_CodeNet | 2,019 | "use strict";
process.stdin.resume();
process.stdin.setEncoding("utf8");
var reader = require("readline").createInterface({
input: process.stdin,
output: process.stdout
});
reader.on("line", line => {
let num = line.split(/\s/).map(i => parseInt(i));
console.log(num[0] * num[1] / 2);
});
| 80 |
Project_CodeNet | 2,020 | function main(input) {
const args = input.split(' ').map(n => parseInt(n, 10));
const S = (args[0] * args[1]) / 2;
console.log(S);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 62 |
Project_CodeNet | 2,019 | function Main(input){
var inputs = input.split(" ");
var ab = parseInt(inputs[0],10);
var bc = parseInt(inputs[1],10);
console.log(ab*bc/2);
}
Main(require('fs').readFileSync('/dev/stdin','utf8')); | 62 |
Project_CodeNet | 2,019 | const fs = require("fs");
const input = fs.readFileSync("/dev/stdin", "utf8");
const lengths = input.split(" ");
console.log(lengths[0] * lengths[1] / 2); | 44 |
Project_CodeNet | 2,019 | "use strict";
function main(input) {
const inputs = input.split("\n").filter(x => x !== "");
let AB = Number(inputs[0].split(" ")[0]);
let BC = Number(inputs[0].split(" ")[1]);
console.log(AB * BC / 2);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
| 79 |
Project_CodeNet | 2,019 | var input = require("fs").readFileSync("/dev/stdin", "utf8");
input = input.split(' ').map(x => parseInt(x));
console.log(input[0] * input[1] / 2)
| 45 |
Project_CodeNet | 2,019 | function main(input) {
const args = input.split(' ');
const a = parseInt(args[0], 10);
const b = parseInt(args[1], 10);
const c = parseInt(args[2], 10)
if(a<c && b<c){
console.log(a*b/2)
}else if(a<b){
console.log(a*c/2)
}else{
console.log(b*c/2)
}
}
main(require('fs').readFileSync('/dev/s... | 111 |
Project_CodeNet | 2,020 | function main(input) {
input = input.trim();
const a = input.split(" ").map(Number);
console.log(a[0]*a[1]/2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 52 |
Project_CodeNet | 2,019 | 'use strict'
const main = input => {
const args = input.split('\n').map(arg => arg.split(' '))
const a = parseInt(args[0][0], 10)
const b = parseInt(args[0][1], 10)
console.log(a * b / 2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
| 76 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
input = input.split(" ").map(num => Number(num)).sort((a,b) => a-b);
console.log(input[0] * input[1]/2);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 115 |
Project_CodeNet | 2,019 | parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... | 4,202 |
Project_CodeNet | 2,019 | 'use strict'
const main = (INPUT) => {
const N = INPUT.split('\n')[0].split(' ')
console.log(N[1] * N[0] / 2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
| 58 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
input = input.split(" ");
console.log('%d',Number(input[0])*Number(input[1])/2);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
| 102 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
var tmp = input.split(" ");
//文字列から10進数に変換するときはparseIntを使います
var a = parseInt(tmp[0], 10);
var b = parseInt(tmp[1], 10);
var r = a * b / 2;
//出力
console.log('%d',r);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8... | 154 |
Project_CodeNet | 2,019 | function main(arg) {
var tmp = arg.split("\n")[0].split(" ")
var ab = Number(tmp[0])
var bc = Number(tmp[1])
console.log(ab * bc /2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 59 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
tmp = input[0].split(" ");
var AB = parseInt(tmp[0], 10)
var BC = parseInt(tmp[1], 10)
var CA = parseInt(tmp[2], 10)
//出力
console.log('%d',AB*BC/2);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Mai... | 173 |
Project_CodeNet | 2,019 | function main(input) {
const args = input.split(' ');
const A = parseInt(args[0], 10);
const B = parseInt(args[1], 10);
console.log(A*B/2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| 62 |
Project_CodeNet | 2,019 | var GET=(function(){function f(s){return new g(s);}function g(s){this._s=s.trim().split("\n");this._y=0;}g.prototype.a=function(f){var s=this._s, y=this._y, r;if(typeof s[y]==="string")s[y]=s[y].split(" ").reverse();r=s[y].pop();if(!s[y].length)this._y++;return f?r:+r;};g.prototype.l=function(f){var s=this._s[this._y++... | 257 |
Project_CodeNet | 2,019 | function Main(input){
const splitted = input.split(' ').map(elem => parseInt(elem));
const ab = splitted[0];
const bc = splitted[1];
const ca = splitted[2];
console.log(ab * bc / 2);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 70 |
Project_CodeNet | 2,019 | function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
tmp = input.split(" ");
tmp = tmp.map(Number);
M = Math.max.apply(null,tmp);
max_key = tmp.indexOf(M);
tmp = tmp.filter(n => n !==M);
answer = tmp[0]*tmp[1]*0.5;
console.log(answer);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Ma... | 153 |
Project_CodeNet | 2,019 | const input = require('fs').readFileSync('/dev/stdin', 'utf8').split(" ");
console.log(parseInt(input[0]) * parseInt(input[1]) / 2); | 38 |
Project_CodeNet | 2,019 | var nums = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split(' ');
console.log((+nums[0] * +nums[1]) >> 1); | 41 |
Project_CodeNet | 2,019 | function main(input){
const AB=parseInt(input.split(" ")[0],10);
const BC=parseInt(input.split(" ")[1],10);
const CA=parseInt(input.split(" ")[2],10);
console.log(AB*BC/2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 70 |
Project_CodeNet | 2,019 | input = require('fs').readFileSync('/dev/stdin', 'utf8')
lines = input.split('\n')
line = lines.shift().split(' ')
a = line[0] * 1
b = line[1] * 1
c = line[2] * 1
console.log(a * b * c / 2 / Math.max(a,b,c)) | 79 |
Project_CodeNet | 2,019 | function main(input) {
const args = input.split(' ');
console.log(1/2 * Number(args[0]) * Number(args[1]));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| 49 |
Project_CodeNet | 2,019 | function Main(input) {
input = input.split("\n");
var A = parseInt(input[0].split(" ")[0]);
var B = parseInt(input[0].split(" ")[1]);
var C = parseInt(input[0].split(" ")[2]);
var ans = A*B/2;
console.log('%s', ans);
}
// "実行する"ボタンを押した時に実行される関数 (デバッグ用)
function debug(){
var input = document.getElement... | 140 |
Project_CodeNet | 2,019 | function Main(input) {
input = input.split(" ");
var a = parseInt(input[0]);
var b = parseInt(input[1]);
console.log(a * b / 2);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
| 57 |
Project_CodeNet | 2,020 | function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
tmp = input[0].split(" ");
//文字列から10進数に変換するときはparseIntを使います
var a = parseInt(tmp[0], 10);
var b = parseInt(tmp[1], 10);
var c = parseInt(tmp[2], 10);
total= a*b/2;
console.log(total);
}
//*この行以降は編集しないでください(標準入... | 177 |
Project_CodeNet | 2,019 | function main(input) {
var a = input[0].split(" ")[0]-0;
var b = input[0].split(" ")[1]-0;
console.log(a*b/2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
| 66 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
input = input.split(" ");
area = (input[0] * input[1]) /2
//出力
console.log(area);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 111 |
Project_CodeNet | 2,020 | function Main(input) {
input = input.trim()
input = input.split(" ").map(Number);
function compareFunc(a, b) {
return a - b;
}
input.sort(compareFunc);
console.log(input[0]*input[1]/2)
}Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 72 |
Project_CodeNet | 2,020 | "use strict"
function Main(stdin){
stdin = stdin.trim().split("\n").reverse();
let stdout = [];
function input(){return stdin.pop()};
function print(x){stdout.push(x)};
function mapint(x){return x.map(n=>parseInt(n))};
function mapfloat(x){return x.map(n=>parseFloat(n))};
function max(x){return x.reduce(function(a,b){ ... | 355 |
Project_CodeNet | 2,019 | process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
reader.on('line', (line) => {
lines.push(line);
});
reader.on('close', () => {
lines = lines[0].split(' ')
console.log(lines[0] * lin... | 91 |
Project_CodeNet | 2,019 | function main (input) {
const args = input.split(' ');
const a = parseInt(args[0],10);
const b = parseInt(args[1],10);
console.log(a*b/2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| 61 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
currentList = input[0].split(" ").map( str => parseInt(str, 10) );
console.log(currentList[0] * currentList[1] / 2);
};
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/s... | 150 |
Project_CodeNet | 2,020 | const main = input => {
const [AB, BC, CA] = input.trim().split(' ').map(x => parseInt(x))
console.log(AB * BC / 2)
}
// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"));
| 65 |
Project_CodeNet | 2,019 | 'use strict'
function main(input) {
input = input.split(' ').map(v => ~~v)
console.log( input[0] * input[1] /2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')) | 55 |
Project_CodeNet | 2,019 | 'use strict'
function main(arg) {
let temp = arg.split(" ");
console.log((temp[0] * temp[1]) / 2);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 50 |
Project_CodeNet | 2,019 | // inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
const val = input.split(" ");
console.log(val[0] * val[1] / 2)
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | 128 |
Project_CodeNet | 2,019 | "use strict";
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object... | 766 |
Project_CodeNet | 2,020 |
function main(input){
abc=input.split(' ');
//console.log(abc)
ab=parseInt(abc[0],10)
bc=parseInt(abc[1],10)
console.log(ab*bc/2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | 66 |
Project_CodeNet | 2,020 | 'use strict';
const main = (arg) => {
const input = arg.trim().split('\n');
const [ab, bc, ca] = input[0].split(' ').map(Number);
const ans = (ab * bc) / 2;
console.log(ans);
};
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| 77 |
Project_CodeNet | 2,019 | 'use strict';
let execute = input => {
let sides = input.split(' ').map(el => +el);
let hypotenuse = Math.max(...sides);
return (
sides.filter(el => el != hypotenuse).reduce((sum, el) => sum * el, 1) / 2
);
};
function Main(input) {
console.log(execute(input));
}
Main(require('fs').readFileSync('/dev/std... | 99 |
Project_CodeNet | 2,020 | var input = require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n");
var obj = {
"list" : input,
"index" : 0,
"max" : input.length,
"next" : function(){
if(!this.hasNext()){throw "NoSuchElementException:次に要素は無いよ";}
var returnObj = this.list[this.index];
this.index++;
return returnObj... | 521 |
Project_CodeNet | 2,019 | function Main(input){
input = input.split(" ").map(a=>~~a);
return input[0] * input[1] / 2;
}
// If you are interested in the algorithms I used,
// there is no need to read down from this line.
((b,c,d)=>"undefined"!=typeof require?console.log(Main(require("fs").readFileSync("/dev/stdin","utf8"))):[b=b.split("\n"... | 201 |
Project_CodeNet | 2,019 | var lines =[];
var readline = require("readline");
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.on('line',function(x){
lines.push(x);
});
rl.on('close',function(){
var ab = Number(lines[0].split(" ")[0]);
var bc = Number(lines[0].split(" ")[1]);
var ca = Number(... | 106 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
readLine()!!.split(" ").let { println(it[0].toInt() * it[1].toInt() / 2) }
} | 38 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (x, y) = readLine()!!.split(" ").map(String::toInt)
println((x * y) / 2)
} | 40 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (ab, bc, ca) = readLine()!!.split(' ').map(String::toInt)
println(ab * bc / 2)
}
| 40 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val len = readLine()!!.split(" ").map(String::toInt)
println(len[0] * len[1] / 2)
} | 40 |
Project_CodeNet | 2,019 | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val a = sc.nextInt()
val b = sc.nextInt()
val c = sc.nextInt()
var max = a
if (b>max) max = b
if (c>max) max = c
println(a*b*c/max/2)
}
| 80 |
Project_CodeNet | 2,019 | private val scanner = java.util.Scanner(System.`in`)
private fun readInts(n: Int) = Array(n) { scanner.nextInt() }
private fun readLongs(n: Int) = Array(n) { scanner.nextLong() }
private fun readLineInts() = readLine()!!.split(" ").map { it.toInt() }.toTypedArray()
private fun readLineLongs() = readLine()!!.split(" ")... | 133 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val edges = readInputLine().split(" ").map { it.toInt() }.sorted()
println(edges[0] * edges[1] / 2)
}
fun readInputLine(): String {
return readLine()!!
}
| 59 |
Project_CodeNet | 2,019 | import java.io.PrintWriter
import java.util.*
import java.math.*
import java.lang.*
val pw = PrintWriter(System.out)
val MOD: Long = (1e+9 + 7).toLong()
fun main(args: Array<String>) {
val edges = readListOfInt().sorted()
val ans = edges[0] * edges[1] / 2
println(ans)
pw.flush()
}
/****** Declare... | 799 |
Project_CodeNet | 2,020 | fun main(arr: Array<String>) {
val lines = readLine()!!.split(" ").map { it.toInt() }.sorted()
val ans = lines[0] * lines[1] / 2
println(ans)
}
| 49 |
Project_CodeNet | 2,019 | fun main(args: Array<String>): Unit {
val sc = java.util.Scanner(System.`in`)
val ab = sc.nextInt()
val ba = sc.nextInt()
val ac = sc.nextInt()
println(ab * ba / 2)
} | 51 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (AB, BC, CA) = readLine()!!.split(" ").map { it.toInt() }
println((AB * BC) / 2)
} | 43 |
Project_CodeNet | 2,020 | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val ab = sc.nextInt()
val bc = sc.nextInt()
val cd = sc.nextInt()
println(problem116a(ab, bc, cd))
}
fun problem116a(ab: Int, bc: Int, cd: Int): Int {
return ab * bc / 2
} | 82 |
Project_CodeNet | 2,020 | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
println(sc.nextInt() * sc.nextInt() / 2)
} | 35 |
Project_CodeNet | 2,019 | import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.PrintWriter
val br = BufferedReader(InputStreamReader(System.`in`))
val pw = PrintWriter(System.out)
fun main(args : Array<String>) {
func()
pw.flush()
}
fun func() {
// 回答をここに書く
val (AB, BC, CA) = listOfLong()
println(A... | 553 |
Project_CodeNet | 2,019 | import java.io.*
import java.util.*
fun solve(AB: Int, BC: Int, CA: Int){
println(AB*BC/2)
return
}
fun main(args: Array<String>) {
fun StringArray(size: Int, init: (Int) -> String = { "\u0000" }): Array<String> {
return Array<String>(size, init)
}
class Scanner(stream: InputStream) {
... | 174 |
Project_CodeNet | 2,019 | import java.util.*
fun main(vararg args: String) {
val scanner = Scanner(System.`in`)
val sideList = mutableListOf<Int>()
sideList.add(scanner.nextInt())
sideList.add(scanner.nextInt())
sideList.add(scanner.nextInt())
val triangle = Triangle(sideList.sortedBy { it })
println(triangle.calcul... | 107 |
Project_CodeNet | 2,020 | import java.io.PrintWriter
fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun nextList() = next().split(" ")
fun nextIntList() = nextList().map(String::toInt)
fun nextLongList() = nextList().map(String::toLong)
fun nextDoubleList() = nextL... | 235 |
Project_CodeNet | 2,020 | fun main(args: Array<String>){
readLine()!!.split(" ").map { it.toInt() }.let {
println(it[0]*it[1]/2)
}
} | 39 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (a, b, c) = readLine()!!.split(" ").map(String::toInt)
println(a * b / 2)
}
| 40 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (ab, bc, ca) = readLine()!!.split(" ").map { it.toInt() }
println(ab * bc / 2)
} | 41 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (a,b,c) = readLine()!!.split(" ").map{ it.toInt() }
println(a*b/2)
} | 37 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
var sides = readLine()!!.split(" ").map(String::toInt).sorted().take(2)
println(sides[0]*sides[1]/2)
} | 45 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (ab, bc, ca) = readLine()!!.split(" ").map{it.toInt()}
println((ab*bc)/2)
}
| 41 |
Project_CodeNet | 2,020 | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val ab = sc.nextInt()
val bc = sc.nextInt()
val ca = sc.nextInt()
println(ab * bc / 2)
} | 52 |
Project_CodeNet | 2,019 | fun main (args : Array<String>) {
val (a, b, c) = readLine()!!.split(" ")
val A : Int = a.toInt()
val B : Int = b.toInt()
println("${(A * B) / 2}")
} | 53 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
val (x, y, z) = readLine()!!.split(" ").map { it.toInt() }
print(x * y / 2)
} | 41 |
Project_CodeNet | 2,019 | import java.io.PrintWriter
val pw = PrintWriter(System.out)
fun main(args : Array<String>) {
func()
pw.flush()
}
fun func() {
val (ab, bc, ca) = listOfInt()
println(ab * bc / 2)
}
fun next() = readLine()!!
fun listOfString() = next().split(" ")
fun listOfInt()= listOfString().map { it.toInt() }
fun... | 100 |
Project_CodeNet | 2,020 | fun main(args: Array<String>) {
val List = readLine()!!.split(" ").map(String::toInt)
val AB = List[0]
val BC = List[1]
val CA = List[2]
println(BC * AB / 2)
} | 59 |
Project_CodeNet | 2,020 | fun main(args: Array<String>) {
val (ab, bc, ca) = readLine()!!.split(" ").map { it.toInt() }
println(ab * bc / 2)
} | 41 |
Project_CodeNet | 2,019 | fun main(args: Array<String>) {
abc116a()
}
fun abc116a() {
val (ab, bc, ca) = readLine()!!.split(" ").map { it.toInt() }
println(ab * bc / 2)
}
| 53 |
Project_CodeNet | 2,020 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
Put_Line (Integer'Image (A*B/2));
end Solve; | 74 |
Project_CodeNet | 2,019 | {-# LANGUAGE BangPatterns #-}
{-# LANGUAGE BinaryLiterals #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE NumDecimals #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
import Control.Applicative
import Control.Arrow
import Control.Monad
import Control.Monad.ST
import Data.Char
import Data.List
impo... | 188 |
Project_CodeNet | 2,019 | import Data.List
import Control.Applicative
import Control.Monad
import Data.Bits
main :: IO ()
main = do
[x,y,z] <- map read . words <$> getLine :: IO [Int]
print $ (x * y) `shiftR` 1
| 61 |
Project_CodeNet | 2,019 | module Main (main) where
import qualified Data.ByteString.Char8 as C8
import Data.Bool
import Data.Maybe
main :: IO ()
main = do
[a,b,c] <- readInts
print . showAnswer $ solve (a,b,c)
type Input = (Int, Int, Int)
type Output = Int
solve :: Input -> Output
solve (a,b,c) = (a*b) `div` 2
showAnswer :: Output -> ... | 335 |
Project_CodeNet | 2,020 | main = do
[x,y,_] <- map read . words <$> getLine :: IO [Int]
print $ div (x * y) 2
| 35 |
Project_CodeNet | 2,019 | solve :: Int -> Int -> Int
solve ab bc = (ab * bc) `div` 2
main :: IO ()
main = do
[ab, bc, _] <- map read . words <$> getLine
print $ solve ab bc | 54 |
Project_CodeNet | 2,019 | import Data.List
main :: IO ()
main = do
input <- map read . words <$> getLine :: IO [Int]
let [a, b, _] = sort input
print $ a * b `div` 2
| 52 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.