git reimport

This commit is contained in:
2019-03-15 13:47:54 +04:00
commit 3b461f73de
489 changed files with 1631603 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// Sample input 1, in Java.
public class broken_memory {
public broken_memory() {
}
public static long GetLength() {
return 10L;
}
public static long GetValue(long i) {
if (i < 0L || i >= GetLength())
throw new IllegalArgumentException("Invalid argument");
if ((message.MyNodeId()) == i)
return (i ^ (i + message.MyNodeId() + 1)) + 1L;
return (i) + 1L;
}
}

View File

@@ -0,0 +1,17 @@
// Sample input 2, in Java.
public class broken_memory {
public broken_memory() {
}
public static long GetLength() {
return 30L;
}
public static long GetValue(long i) {
if (i < 0L || i >= GetLength())
throw new IllegalArgumentException("Invalid argument");
if ((29L - message.MyNodeId()) == i)
return (((i % 9L) + 1L) * ((i % 7L) + 1L) ^ (i + message.MyNodeId() + 1)) + 1L;
return (((i % 9L) + 1L) * ((i % 7L) + 1L)) + 1L;
}
}

View File

@@ -0,0 +1,17 @@
// Sample input 3, in Java.
public class broken_memory {
public broken_memory() {
}
public static long GetLength() {
return 16L;
}
public static long GetValue(long i) {
if (i < 0L || i >= GetLength())
throw new IllegalArgumentException("Invalid argument");
if ((12L ^ message.MyNodeId()) == i)
return ((i * i) ^ 21L ^ (i + message.MyNodeId() + 1)) + 1L;
return ((i * i) ^ 21L) + 1L;
}
}