| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148933 | Kevin | 勾股数 | C++ | Accepted | 1 MS | 264 KB | 281 | 2026-03-03 15:30:24 |
#include<bits/stdc++.h> using namespace std; int main() { int s=0; for(int i=1;i<=100;i++){ for(int j=i+1;j<=100;j++){ for(int z=j+1;z<=100;z++){ if(i*i+j*j==z*z){ cout<<i<<" "<<j<<" "<<z<<endl; s++; } } } } cout<<s; return 0; }