| # 64 Propusă de Administrator Platformă la data de 01 Iunie 2018 - 08:16:45 - pentru clasa 10 | |
| Pentru un număr natural m numim rest mare cel mai mare rest pe care îl obţinem împărţind numărul m la toate numerele naturale de la 1 la m. Fiind dat un număr
natural n, se determină pentru fiecare număr de la 1 la n numărul rest mare, iar aceste resturi mari se însumează. Se cere aflarea acestei sume. | Detalii |
|
Date de intrare
Fișierul de intrare test.in conține pe prima linie numărul n.
Date de ieșire Fișierul de ieșire test.out va conține pe prima linie numărul S, reprezentând suma resturilor mari ale tuturor
numerelor naturale de la 1 la n.
Restricții și
precizări 1 ≤ n ≤ 2.000.000.000
Exemplu test.in
3
test.out 1
Explicație
Resturile mari ale numerelor 1,2,3 sunt respectiv 0,0,1, deci suma lor este 1.
|
Ascunde detalii.
|
|
| Problema | Utilizatorul | Clasa | Data depunerii | Ora depunerii | Rezultat | Stare | Punctajul obținut | | File |
| #64 → [ 10 ] | # andreea3 | a IX-a A | 20 Iunie 2021 | 10:52:18 | Compilare cu SUCCES. | evaluata | 25 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | andreea3 | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 2 | andreea3 | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 3 | andreea3 | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 4 | andreea3 | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | Punctaj obținut: 25 |
|
| #64 → [ 10 ] | # verticmariuscristian | a X-a A | 28 Octombrie 2021 | 02:09:52 | Compilare cu SUCCES. | evaluata | 50 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | verticmariuscristian | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 2 | verticmariuscristian | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 3 | verticmariuscristian | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 4 | verticmariuscristian | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | Punctaj obținut: 50 |
|
| #64 → [ 10 ] | # baciusimona | a X-a A | 12 Mai 2022 | 16:22:06 | Compilare cu SUCCES. | evaluata | 25 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | baciusimona | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 2 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 3 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 4 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | Punctaj obținut: 25 |
|
| #64 → [ 10 ] | # baciusimona | a X-a A | 30 Iulie 2022 | 17:27:35 | Compilare cu SUCCES. | evaluata | 25 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | baciusimona | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 2 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 3 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 4 | baciusimona | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | Punctaj obținut: 25 |
|
| #64 → [ 10 ] | # Daniel. | a IX-a A | 14 Iunie 2024 | 22:20:42 | Compilare cu SUCCES. | evaluata | 50 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | Daniel. | 64 | ****** | ****** | ****** | OK | 25 | 0.0061 | | 2 | Daniel. | 64 | ****** | ****** | ****** | OK | 25 | 0.0061 | | 3 | Daniel. | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.0061 | | 4 | Daniel. | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.0061 | | Punctaj obținut: 50 |
|
| #64 → [ 10 ] | # Daniel. | a IX-a A | 14 Iunie 2024 | 22:23:02 | Compilare cu SUCCES. | evaluata | 50 |
| Număr test | Utilizator | Număr problema | Setul de date de intrare | Datele de ieșire | Datele așteptate | Rezultat | Puncte | Timp execuţie | | 1 | Daniel. | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 2 | Daniel. | 64 | ****** | ****** | ****** | OK | 25 | 0.001 | | 3 | Daniel. | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | 4 | Daniel. | 64 | ****** | ****** | ****** | GREȘIT | 0 | 0.001 | | Punctaj obținut: 50 |
|