first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package nyagami;
import java.util.Scanner;
public class test{
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=1; i<=n; i++){
for(int j=1; j<=n; j++){
int x = sc.nextInt();
if(x==1 && i<j){
System.out.printf("(%d,%d)\n", i, j);
}
}
}
sc.close();
}
}