@anonymous/

DelayedBaggyDaemons

Java

No description

fork
loading
Files
  • Main.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.1205116550759524","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"aW1wb3J0IGphdmEudXRpbC4qO2ludGVyZmFjZSBNe3N0YXRpYyB2b2lkIG1haW4oU3RyaW5nW11BKXtTY2FubmVyIEk9bmV3IFNjYW5uZXIoU3lzdGVtLmluKTtpbnQgYVtdPXswLDAsMCwwfTtmb3IoaW50IGk9MDtpPDQ7YVtpKytdPUkubmV4dEludCgpKTtqYXZhLnV0aWwuQXJyYXlzLnNvcnQoYSk7U3lzdGVtLm91dC5wcmludCgyKihhWzJdLWFbMF0+YVszXS1hWzFdP2FbM10tYVsxXTphWzJdLWFbMF0pKTt9fQ=="},"asBuffer":null},"loaded":true}}
1
import java.util.*;interface M{static void main(String[]A){Scanner I=new Scanner(System.in);int a[]={0,0,0,0};for(int i=0;i<4;a[i++]=I.nextInt());java.util.Arrays.sort(a);System.out.print(2*(a[2]-a[0]>a[3]-a[1]?a[3]-a[1]:a[2]-a[0]));}}