Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125803 陈国川 完美立方 C++ Output Limit Exceeded 1 MS 272 KB 298 2025-07-15 15:29:34

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,n; cin>>n; for(int a=0;a<=n;a++){ for(int b=0;b<=n;b++){ for(int c=0;c<=n;c++){ for(int d=0;d<=n;d++){ if(a^3==b^3+c^3+d^3){ cout<<a<<b<<c<<d; } } } } } return 0; }