QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#417090 | #6747. Permutation | ericmegalovania# | AC ✓ | 5ms | 3840kb | C++20 | 826b | 2024-05-22 14:12:17 | 2024-05-22 14:12:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
//#define ONLINE
#ifndef ONLINE
#define debug(...) fprintf(stderr,##__VA_ARGS__)
#else
#define debug(...) ;
#endif
using LL=long long;
using PII=pair<int,int>;
template<typename T>
inline T READ(){
T x=0; bool f=0; char c=getchar();
while(!isdigit(c)) f|=(c=='-'),c=getchar();
while(isdigit(c)) x=x*10+c-'0',c=getchar();
return f?-x:x;
}
inline int read(){return READ<int>();}
inline LL readLL(){return READ<LL>();}
mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
int main(){
for(int n=read();n--;) printf("%d ",n+1);
return 0;
}
/* stuff you should look for
* int overflow, array bounds
* special cases (n=1?)
* do smth instead of nothing and stay organized
* WRITE STUFF DOWN
* DON'T GET STUCK ON ONE APPROACH
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3704kb
input:
3
output:
3 2 1
result:
ok ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
7
output:
7 6 5 4 3 2 1
result:
ok ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
61956
output:
61956 61955 61954 61953 61952 61951 61950 61949 61948 61947 61946 61945 61944 61943 61942 61941 61940 61939 61938 61937 61936 61935 61934 61933 61932 61931 61930 61929 61928 61927 61926 61925 61924 61923 61922 61921 61920 61919 61918 61917 61916 61915 61914 61913 61912 61911 61910 61909 61908 61907 ...
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
79013
output:
79013 79012 79011 79010 79009 79008 79007 79006 79005 79004 79003 79002 79001 79000 78999 78998 78997 78996 78995 78994 78993 78992 78991 78990 78989 78988 78987 78986 78985 78984 78983 78982 78981 78980 78979 78978 78977 78976 78975 78974 78973 78972 78971 78970 78969 78968 78967 78966 78965 78964 ...
result:
ok ok
Test #5:
score: 0
Accepted
time: 3ms
memory: 3740kb
input:
45517
output:
45517 45516 45515 45514 45513 45512 45511 45510 45509 45508 45507 45506 45505 45504 45503 45502 45501 45500 45499 45498 45497 45496 45495 45494 45493 45492 45491 45490 45489 45488 45487 45486 45485 45484 45483 45482 45481 45480 45479 45478 45477 45476 45475 45474 45473 45472 45471 45470 45469 45468 ...
result:
ok ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
40463
output:
40463 40462 40461 40460 40459 40458 40457 40456 40455 40454 40453 40452 40451 40450 40449 40448 40447 40446 40445 40444 40443 40442 40441 40440 40439 40438 40437 40436 40435 40434 40433 40432 40431 40430 40429 40428 40427 40426 40425 40424 40423 40422 40421 40420 40419 40418 40417 40416 40415 40414 ...
result:
ok ok
Test #7:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
15281
output:
15281 15280 15279 15278 15277 15276 15275 15274 15273 15272 15271 15270 15269 15268 15267 15266 15265 15264 15263 15262 15261 15260 15259 15258 15257 15256 15255 15254 15253 15252 15251 15250 15249 15248 15247 15246 15245 15244 15243 15242 15241 15240 15239 15238 15237 15236 15235 15234 15233 15232 ...
result:
ok ok
Test #8:
score: 0
Accepted
time: 4ms
memory: 3744kb
input:
69586
output:
69586 69585 69584 69583 69582 69581 69580 69579 69578 69577 69576 69575 69574 69573 69572 69571 69570 69569 69568 69567 69566 69565 69564 69563 69562 69561 69560 69559 69558 69557 69556 69555 69554 69553 69552 69551 69550 69549 69548 69547 69546 69545 69544 69543 69542 69541 69540 69539 69538 69537 ...
result:
ok ok
Test #9:
score: 0
Accepted
time: 5ms
memory: 3676kb
input:
88636
output:
88636 88635 88634 88633 88632 88631 88630 88629 88628 88627 88626 88625 88624 88623 88622 88621 88620 88619 88618 88617 88616 88615 88614 88613 88612 88611 88610 88609 88608 88607 88606 88605 88604 88603 88602 88601 88600 88599 88598 88597 88596 88595 88594 88593 88592 88591 88590 88589 88588 88587 ...
result:
ok ok
Test #10:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
2540
output:
2540 2539 2538 2537 2536 2535 2534 2533 2532 2531 2530 2529 2528 2527 2526 2525 2524 2523 2522 2521 2520 2519 2518 2517 2516 2515 2514 2513 2512 2511 2510 2509 2508 2507 2506 2505 2504 2503 2502 2501 2500 2499 2498 2497 2496 2495 2494 2493 2492 2491 2490 2489 2488 2487 2486 2485 2484 2483 2482 2481 ...
result:
ok ok
Test #11:
score: 0
Accepted
time: 3ms
memory: 3688kb
input:
52103
output:
52103 52102 52101 52100 52099 52098 52097 52096 52095 52094 52093 52092 52091 52090 52089 52088 52087 52086 52085 52084 52083 52082 52081 52080 52079 52078 52077 52076 52075 52074 52073 52072 52071 52070 52069 52068 52067 52066 52065 52064 52063 52062 52061 52060 52059 52058 52057 52056 52055 52054 ...
result:
ok ok
Test #12:
score: 0
Accepted
time: 4ms
memory: 3840kb
input:
76573
output:
76573 76572 76571 76570 76569 76568 76567 76566 76565 76564 76563 76562 76561 76560 76559 76558 76557 76556 76555 76554 76553 76552 76551 76550 76549 76548 76547 76546 76545 76544 76543 76542 76541 76540 76539 76538 76537 76536 76535 76534 76533 76532 76531 76530 76529 76528 76527 76526 76525 76524 ...
result:
ok ok
Test #13:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
2893
output:
2893 2892 2891 2890 2889 2888 2887 2886 2885 2884 2883 2882 2881 2880 2879 2878 2877 2876 2875 2874 2873 2872 2871 2870 2869 2868 2867 2866 2865 2864 2863 2862 2861 2860 2859 2858 2857 2856 2855 2854 2853 2852 2851 2850 2849 2848 2847 2846 2845 2844 2843 2842 2841 2840 2839 2838 2837 2836 2835 2834 ...
result:
ok ok
Test #14:
score: 0
Accepted
time: 3ms
memory: 3656kb
input:
60890
output:
60890 60889 60888 60887 60886 60885 60884 60883 60882 60881 60880 60879 60878 60877 60876 60875 60874 60873 60872 60871 60870 60869 60868 60867 60866 60865 60864 60863 60862 60861 60860 60859 60858 60857 60856 60855 60854 60853 60852 60851 60850 60849 60848 60847 60846 60845 60844 60843 60842 60841 ...
result:
ok ok
Test #15:
score: 0
Accepted
time: 4ms
memory: 3804kb
input:
80639
output:
80639 80638 80637 80636 80635 80634 80633 80632 80631 80630 80629 80628 80627 80626 80625 80624 80623 80622 80621 80620 80619 80618 80617 80616 80615 80614 80613 80612 80611 80610 80609 80608 80607 80606 80605 80604 80603 80602 80601 80600 80599 80598 80597 80596 80595 80594 80593 80592 80591 80590 ...
result:
ok ok
Test #16:
score: 0
Accepted
time: 4ms
memory: 3656kb
input:
70045
output:
70045 70044 70043 70042 70041 70040 70039 70038 70037 70036 70035 70034 70033 70032 70031 70030 70029 70028 70027 70026 70025 70024 70023 70022 70021 70020 70019 70018 70017 70016 70015 70014 70013 70012 70011 70010 70009 70008 70007 70006 70005 70004 70003 70002 70001 70000 69999 69998 69997 69996 ...
result:
ok ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
39320
output:
39320 39319 39318 39317 39316 39315 39314 39313 39312 39311 39310 39309 39308 39307 39306 39305 39304 39303 39302 39301 39300 39299 39298 39297 39296 39295 39294 39293 39292 39291 39290 39289 39288 39287 39286 39285 39284 39283 39282 39281 39280 39279 39278 39277 39276 39275 39274 39273 39272 39271 ...
result:
ok ok
Test #18:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
9023
output:
9023 9022 9021 9020 9019 9018 9017 9016 9015 9014 9013 9012 9011 9010 9009 9008 9007 9006 9005 9004 9003 9002 9001 9000 8999 8998 8997 8996 8995 8994 8993 8992 8991 8990 8989 8988 8987 8986 8985 8984 8983 8982 8981 8980 8979 8978 8977 8976 8975 8974 8973 8972 8971 8970 8969 8968 8967 8966 8965 8964 ...
result:
ok ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
27667
output:
27667 27666 27665 27664 27663 27662 27661 27660 27659 27658 27657 27656 27655 27654 27653 27652 27651 27650 27649 27648 27647 27646 27645 27644 27643 27642 27641 27640 27639 27638 27637 27636 27635 27634 27633 27632 27631 27630 27629 27628 27627 27626 27625 27624 27623 27622 27621 27620 27619 27618 ...
result:
ok ok
Test #20:
score: 0
Accepted
time: 3ms
memory: 3656kb
input:
63305
output:
63305 63304 63303 63302 63301 63300 63299 63298 63297 63296 63295 63294 63293 63292 63291 63290 63289 63288 63287 63286 63285 63284 63283 63282 63281 63280 63279 63278 63277 63276 63275 63274 63273 63272 63271 63270 63269 63268 63267 63266 63265 63264 63263 63262 63261 63260 63259 63258 63257 63256 ...
result:
ok ok
Test #21:
score: 0
Accepted
time: 5ms
memory: 3652kb
input:
82556
output:
82556 82555 82554 82553 82552 82551 82550 82549 82548 82547 82546 82545 82544 82543 82542 82541 82540 82539 82538 82537 82536 82535 82534 82533 82532 82531 82530 82529 82528 82527 82526 82525 82524 82523 82522 82521 82520 82519 82518 82517 82516 82515 82514 82513 82512 82511 82510 82509 82508 82507 ...
result:
ok ok
Test #22:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
12775
output:
12775 12774 12773 12772 12771 12770 12769 12768 12767 12766 12765 12764 12763 12762 12761 12760 12759 12758 12757 12756 12755 12754 12753 12752 12751 12750 12749 12748 12747 12746 12745 12744 12743 12742 12741 12740 12739 12738 12737 12736 12735 12734 12733 12732 12731 12730 12729 12728 12727 12726 ...
result:
ok ok