Skip to main content
Commonmark migration
Source Link

Java, 180 177 166 152 143 bytes

#Java, 180 177 166 152 143 bytes# ThanksThanks Thomas for helping a noob out :)

class D{public static void main(String[]a){int f=java.time.LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

class D {
  public static void main(String[]a) {
    int f = java.time.LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

#Java, 180 177 166 152 143 bytes# Thanks Thomas for helping a noob out :)

class D{public static void main(String[]a){int f=java.time.LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

class D {
  public static void main(String[]a) {
    int f = java.time.LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

Java, 180 177 166 152 143 bytes

Thanks Thomas for helping a noob out :)

class D{public static void main(String[]a){int f=java.time.LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

class D {
  public static void main(String[]a) {
    int f = java.time.LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

added 12 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82

#Java, 180 177 166 152152 143 bytes# Thanks Thomas for helping a noob out :)

import java.time.*;classclass D{public static void main(String[]a){int f=LocalDatef=java.time.LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

import java.time.*;

class D {
  public static void main(String[]a) {
    int f = java.time.LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

#Java, 180 177 166 152 bytes# Thanks Thomas for helping a noob out :)

import java.time.*;class D{public static void main(String[]a){int f=LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

import java.time.*;

class D {
  public static void main(String[]a) {
    int f = LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

#Java, 180 177 166 152 143 bytes# Thanks Thomas for helping a noob out :)

class D{public static void main(String[]a){int f=java.time.LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

class D {
  public static void main(String[]a) {
    int f = java.time.LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

deleted 4 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82

#Java, 180 177 166166 152 bytes# Thanks Thomas for helping a noob out :)

import java.time.LocalDate;class*;class D{public static void main(String[]a){int f=LocalDate.now().getYear();System.out.printf("%d %"%.1f %d\n",f,(3.0*f*f-5755)/40,3*f-5720);}}
          

~

Ungolfed version:

import java.time.LocalDate;*;

class D {
  public static void main(String[] aString[]a) {
     int f = LocalDate.now().getYear();
     System.out.printf("%d %"%.1f %d\n",
       f,(3.0*f *f- 5755)/40,3*f - 5720);
  }
}

Requires Java 8.

#Java, 180 177 166 bytes#

import java.time.LocalDate;class D{public static void main(String[]a){int f=LocalDate.now().getYear();System.out.printf("%d %.1f %d\n",f,(3.0*f-5755)/40,3*f-5720);}}

~

Ungolfed version:

import java.time.LocalDate;

class D {
  public static void main(String[] a) {
     int f = LocalDate.now().getYear();
     System.out.printf("%d %.1f %d\n",
       f,(3.0*f - 5755)/40,3*f - 5720);
  }
}

Requires Java 8.

#Java, 180 177 166 152 bytes# Thanks Thomas for helping a noob out :)

import java.time.*;class D{public static void main(String[]a){int f=LocalDate.now().getYear();System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);}}
          

Ungolfed version:

import java.time.*;

class D {
  public static void main(String[]a) {
    int f = LocalDate.now().getYear();
    System.out.printf("%.1f %d\n",(3.*f-5755)/40,3*f-5720);
  }
}

Requires Java 8.

edited body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82
Loading
added 8 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82
Loading
added 6 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82
Loading
Source Link
a spaghetto
  • 11.3k
  • 3
  • 46
  • 82
Loading