gym-101343I-Husam and the Broken Present 1
Posted Kearon
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gym-101343I-Husam and the Broken Present 1相关的知识,希望对你有一定的参考价值。
1 ///水题 2 #include <bits/stdc++.h> 3 using namespace std; 4 int main() 5 { 6 int n; 7 int m; 8 int ans[110]; 9 scanf("%d",&n); 10 for(int i=0;i<n;i++) 11 for(int j=0;j<n;j++) 12 { 13 scanf("%d",&m); 14 if(i==j) 15 { 16 ans[i]=sqrt(m); 17 } 18 } 19 for(int i=0;i<n;i++) 20 printf("%d ",ans[i]); 21 printf("\n"); 22 }
以上是关于gym-101343I-Husam and the Broken Present 1的主要内容,如果未能解决你的问题,请参考以下文章
gym-101343E-Abdalrahman Ali Bugs
gym-101343H-Give Me This Pizza
gym-101343B-So You Think You Can Count?