Search found 1 match

by Thorles
Fri Dec 26, 2014 8:19 pm
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 22608

Re: 264 - Count on Cantor

import java.util.Scanner;

class Main {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x=1,y=1,elso=1;
while(sc.hasNext()){
int n=sc.nextInt();
int u=n;
int q=1;
while(n-q>0){
n-=q;
q++;
}
if(q%2==0) {
x=1;
y=q;
for(int i=1;i<n;i++){
x++;
y ...

Go to advanced search