QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#769718 | #6182. 6G 网络问题 | Physics212303 | 20 | 0ms | 3736kb | C++17 | 199b | 2024-11-21 19:04:38 | 2024-11-21 19:04:39 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
int n; while(cin>>n){
int x=__builtin_sqrt(n);
cout<<n*(x+(x*x!=n))<<endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 10
Accepted
time: 0ms
memory: 3636kb
input:
91 6643 757 2451 21
output:
910 544726 21196 122550 105
result:
ok 5 number(s): "910 544726 21196 122550 105"
Test #2:
score: 10
Accepted
time: 0ms
memory: 3616kb
input:
273 73 6643 651 1057 757
output:
4641 657 544726 16926 34881 21196
result:
ok 6 numbers
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3604kb
input:
294517083 91 1057 24142483 651 519908403 47052741 83811 65793 777824211 282492057 1772893 260160771 16513 280371 244156251 895774971 104070603 12120843 38956323 4829007 73 2451 4196353 3420651 1875531 594847711 16781313 607597851 9768751 13849563 20155611 62750163 1049601
output:
-674328946 910 34881 -1622922826 16926 841668246 659256060 24305190 16908801 -362567306 -2107335320 -1933473820 210188038 2130177 148596630 1254619278 1359020398 871369694 -744897634 -1647767706 2024222794 657 122550 8392705 2033237054 -1725489826 -63854598 33562625 736065998 472344554 8465934 30438...
result:
wrong answer 1st numbers differ - expected: '5054502178446', found: '-674328946'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3656kb
input:
131091051 282492057 262657 59293 1049601 65793 24142483 5767203 895774971 519908403 73 117993 1875531 38956323 16781313 268451841 4161 352294131 2451 130683 16513 47052741 391251 62750163 260160771 15751 141170043 280371 13849563 244156251 21 1772893 148048057 83811 67117057 163060131 3420651 885386...
output:
2048947646 -2107335320 134743041 14467492 1075841025 16908801 -1622922826 967919718 1359020398 841668246 657 40589592 -1725489826 -1647767706 33562625 536903681 270465 -1688796970 122550 47307246 2130177 659256060 244923126 -1109415050 210188038 1984626 -1949761810 148596630 8465934 1254619278 105 -...
result:
wrong answer 1st numbers differ - expected: '1500992533950', found: '2048947646'
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 3592kb
input:
705938331 815759283 131091051 12120843 88538691 373320363 887533473 15751 14763 130683 163060131 65793 1057 47052741 28403571 9768751 777824211 62750163 387440173 20155611 38956323 594847711 294517083 651 3420651 2451 25416723 273 4196353 214373523 73 1049601 91 24142483 83811 282492057 924483 17728...
output:
659273038 -480939754 2048947646 -744897634 -74573114 2045963902 1578553440 1984626 1801086 47307246 -781265690 16908801 34881 659256060 1067178070 472344554 -362567306 -1109415050 -1489552364 304380174 -1647767706 -63854598 -674328946 16926 2033237054 122550 -697901514 4641 8392705 -763969610 657 10...
result:
wrong answer 1st numbers differ - expected: '18756781454670', found: '659273038'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3588kb
input:
1057 6643 4881891 262657 607597851 47465211 294517083 3420651 4785157 67117057 88538691 141170043 244156251 112561491 4196353 1875531 65793 777824211 20155611 5767203 4829007 16781313 2827443 24142483 73 214373523 12120843 148048057 28403571 163060131 924483 757
output:
34881 544726 -2095922778 134743041 736065998 617789294 -674328946 2033237054 1879988924 134234113 -74573114 -1949761810 1254619278 276511222 8392705 -1725489826 16908801 -362567306 304380174 967919718 2024222794 33562625 460791830 -1622922826 657 -763969610 -744897634 1857460552 1067178070 -78126569...
result:
wrong answer 3rd numbers differ - expected: '10788979110', found: '-2095922778'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3716kb
input:
25416723 83811 887533473 28403571 492906603 12120843 1057 65793 13849563 924483 88538691 20155611 214373523 4829007 273 131091051 5767203 387440173 16513 705938331 62750163 4881891 815759283 47052741 268451841 67117057 38956323 244156251 777824211 7893291 47465211 59293 352294131 294517083 757 16781...
output:
-697901514 24305190 1578553440 1067178070 -64270402 -744897634 34881 16908801 8465934 889352646 -74573114 304380174 -763969610 2024222794 4641 2048947646 967919718 -1489552364 2130177 659273038 -1109415050 -2095922778 -480939754 659256060 536903681 134234113 -1647767706 1254619278 -362567306 7053112...
result:
wrong answer 1st numbers differ - expected: '128151117366', found: '-697901514'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 3736kb
input:
7893291 20155611 2451 62750163 38956323 924483 895774971 59293 73 47052741 887533473 260160771 757 65793 532171 9768751 104070603 352294131 607597851 6643 130683 268451841 91 214373523 1057 708123 1875531 4881891 43053283 28403571 262657 2827443
output:
705311230 304380174 122550 -1109415050 -1647767706 889352646 1359020398 14467492 657 659256060 1578553440 210188038 21196 16908801 388484830 472344554 871369694 -1688796970 736065998 544726 47307246 536903681 910 -763969610 34881 596239566 -1725489826 -2095922778 -952198490 1067178070 134743041 4607...
result:
wrong answer 1st numbers differ - expected: '22180147710', found: '705311230'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3680kb
input:
519908403 112561491 1875531 88538691 148048057 244156251 373320363 131091051 67117057 21 4881891 4161 16781313 25416723 38956323 2451 62750163 352294131 4785157 43053283 1049601 280371 651 387440173 9768751 607597851 47465211 91 16513 924483 895774971 12120843 28403571 391251 24142483 260160771 1630...
output:
841668246 276511222 -1725489826 -74573114 1857460552 1254619278 2045963902 2048947646 134234113 105 -2095922778 270465 33562625 -697901514 -1647767706 122550 -1109415050 -1688796970 1879988924 -952198490 1075841025 148596630 16926 -1489552364 472344554 736065998 617789294 910 2130177 889352646 13590...
result:
wrong answer 1st numbers differ - expected: '11854951405206', found: '841668246'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 3664kb
input:
1057 20155611 25416723 28403571 24142483 4196353 15751 12120843 130683 16781313 104070603 21 519908403 1875531 708123 3420651 163060131 141170043 594847711 4785157 65793 7893291 131091051 4881891 651 38956323 260160771 282492057 280371 373320363 6643 16513 43053283 815759283 91 148048057 14763 24415...
output:
34881 304380174 -697901514 1067178070 -1622922826 8392705 1984626 -744897634 47307246 33562625 871369694 105 841668246 -1725489826 596239566 2033237054 -781265690 -1949761810 -63854598 1879988924 16908801 705311230 2048947646 -2095922778 16926 -1647767706 210188038 -2107335320 148596630 2045963902 5...
result:
wrong answer 2nd numbers differ - expected: '90498693390', found: '304380174'