Submission #19725047


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
int main(){
ll m,n,i,s=0;
  cin >> n;
  for(i=1;i*i<n;i++){
  m = n-i;
    if (m%i == 0){
      if (m/i == i) continue;
      s += m/i;}
  }
cout << s+n-1 << endl;
return 0;
}

Submission Info

Submission Time
Task D - DivRem Number
User snara
Language C++ (GCC 9.2.1)
Score 0
Code Size 266 Byte
Status WA
Exec Time 20 ms
Memory 3616 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 500
Status
WA × 2
AC × 1
WA × 24
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, rand_01.txt, rand_02.txt, rand_03.txt, rand_04.txt, rand_05.txt, rand_06.txt, rand_07.txt, rand_08.txt, rand_09.txt, rand_10.txt, rand_11.txt, rand_12.txt, rand_13.txt, rand_14.txt, rand_15.txt, rand_16.txt, rand_17.txt, rand_18.txt, rand_19.txt, rand_20.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 6 ms 3492 KB
hand_02.txt WA 2 ms 3548 KB
hand_03.txt WA 14 ms 3548 KB
rand_01.txt WA 11 ms 3560 KB
rand_02.txt WA 14 ms 3532 KB
rand_03.txt WA 12 ms 3508 KB
rand_04.txt WA 12 ms 3560 KB
rand_05.txt WA 18 ms 3544 KB
rand_06.txt WA 20 ms 3404 KB
rand_07.txt WA 9 ms 3540 KB
rand_08.txt WA 12 ms 3548 KB
rand_09.txt WA 14 ms 3428 KB
rand_10.txt WA 10 ms 3488 KB
rand_11.txt WA 2 ms 3404 KB
rand_12.txt WA 2 ms 3404 KB
rand_13.txt WA 2 ms 3512 KB
rand_14.txt WA 2 ms 3400 KB
rand_15.txt WA 2 ms 3364 KB
rand_16.txt WA 3 ms 3508 KB
rand_17.txt WA 3 ms 3536 KB
rand_18.txt WA 2 ms 3432 KB
rand_19.txt WA 3 ms 3548 KB
rand_20.txt WA 2 ms 3616 KB
sample_01.txt WA 3 ms 3540 KB
sample_02.txt WA 17 ms 3548 KB