Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5948 | 陈颖钧 | 猜年龄 | C++ | Accepted | 100 | 0 MS | 256 KB | 240 | 2025-02-16 17:24:36 |
#include<bits/stdc++.h> using namespace std; int i,j,a; int main(){ for(i=0;i<=100;i++){ for(j=0;j<=i;j++){ if((j+i)*6==j*i&&i-j<=8){ a=j; } } } cout<<a; return 0; }