Record Detail

Wrong Answer

/in/p1.cpp: In function 'std::__cxx11::string FN(unsigned int)':
/in/p1.cpp:17:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=-1; fab(i)<=n; i++)
                   ~~~~~~^~~
/in/p1.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(fab(i+1)==n) return "Pass\n";
            ~~~~~~~~^~~
/in/p1.cpp: In function 'std::__cxx11::string SOCS(unsigned int)':
/in/p1.cpp:29:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while (sn(i)<n)
            ~~~~~^~
/in/p1.cpp:34:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (sn(i)-sn(j)==n) return "Pass\n";
             ~~~~~~~~~~~^~~
/in/p1.cpp:35:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         else if (sn(i)-sn(j)>n) j++;
                  ~~~~~~~~~~~^~
/in/p1.cpp: In function 'std::__cxx11::string RN(unsigned int)':
/in/p1.cpp:43:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=1;i<=str.length()/2;i++){
                  ~^~~~~~~~~~~~~~~~
/in/p1.cpp:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int k=i;j+k<str.length();k+=i)
                              ~~~^~~~~~~~~~~~~
/in/p1.cpp:51:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (count==str.length()-i) {
                 ~~~~~^~~~~~~~~~~~~~~~
/in/p1.cpp: In function 'std::__cxx11::string DSN(unsigned int)':
/in/p1.cpp:65:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (total==n-1&&n!=1) return "Pass\n";
         ~~~~~^~~~~
/in/p1.cpp: In function 'int fab(int)':
/in/p1.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Status Time Cost Memory Cost
#1 Accepted 2ms 384.0 KiB
#2 Accepted 8ms 404.0 KiB
#3 Accepted 2ms 388.0 KiB
#4 Accepted 1ms 392.0 KiB
#5 Accepted 2ms 404.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 388.0 KiB
#8 Accepted 36ms 424.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 1ms 384.0 KiB
#12 Accepted 2ms 384.0 KiB
#13 Accepted 2ms 336.0 KiB
#14 Accepted 12ms 384.0 KiB
#15 Accepted 2ms 392.0 KiB
#16 Accepted 1ms 348.0 KiB
#17 Accepted 2ms 424.0 KiB
#18 Accepted 2ms 404.0 KiB
#19 Accepted 2ms 384.0 KiB
#20 Accepted 191ms 404.0 KiB
#21 Accepted 1ms 384.0 KiB
#22 Accepted 1ms 404.0 KiB
#23 Accepted 2ms 380.0 KiB
#24 Accepted 2ms 384.0 KiB
#25 Accepted 2ms 384.0 KiB
#26 Accepted 2ms 384.0 KiB
#27 Accepted 2ms 404.0 KiB
#28 Accepted 2ms 388.0 KiB
#29 Accepted 2ms 384.0 KiB
#30 Accepted 2ms 384.0 KiB
#31 Accepted 2ms 392.0 KiB
#32 Accepted 2ms 388.0 KiB
#33 Accepted 1ms 384.0 KiB
#34 Accepted 2ms 380.0 KiB
#35 Accepted 1ms 388.0 KiB
#36 Accepted 1ms 440.0 KiB
#37 Accepted 1ms 384.0 KiB
#38 Accepted 2ms 384.0 KiB
#39 Accepted 1ms 496.0 KiB
#40 Accepted 2ms 404.0 KiB
#41 Accepted 2ms 384.0 KiB
#42 Accepted 2ms 396.0 KiB
#43 Accepted 2ms 384.0 KiB
#44 Accepted 1ms 424.0 KiB
#45 Accepted 1ms 384.0 KiB
#46 Accepted 36ms 392.0 KiB
#47 Accepted 2ms 404.0 KiB
#48 Accepted 1ms 380.0 KiB
#49 Accepted 1ms 392.0 KiB
#50 Accepted 15ms 384.0 KiB
#51 Accepted 2ms 392.0 KiB
#52 Accepted 2ms 388.0 KiB
#53 Accepted 2ms 444.0 KiB
#54 Accepted 2ms 380.0 KiB
#55 Accepted 3ms 452.0 KiB
#56 Accepted 1ms 396.0 KiB
#57 Accepted 2ms 384.0 KiB
#58 Accepted 24ms 392.0 KiB
#59 Accepted 4ms 388.0 KiB
#60 Accepted 2ms 384.0 KiB
#61 Accepted 2ms 396.0 KiB
#62 Accepted 15ms 448.0 KiB
#63 Accepted 2ms 384.0 KiB
#64 Accepted 1ms 404.0 KiB
#65 Accepted 2ms 512.0 KiB
#66 Accepted 15ms 592.0 KiB
#67 Accepted 2ms 792.0 KiB
#68 Accepted 2ms 480.0 KiB
#69 Accepted 2ms 384.0 KiB
#70 Accepted 10ms 512.0 KiB
#71 Accepted 2ms 852.0 KiB
#72 Wrong Answer 2648ms 580.0 KiB
#73 Wrong Answer 2ms 448.0 KiB
#74 Wrong Answer 19ms 1.035 MiB
#75 Wrong Answer 1ms 388.0 KiB
#76 Wrong Answer 2563ms 452.0 KiB
#77 Accepted 1ms 384.0 KiB
#78 Accepted 2ms 404.0 KiB
#79 Wrong Answer 4250ms 404.0 KiB
#80 Accepted 1ms 396.0 KiB

Information

Submit By
Type
Submission
Homework
Project 1
Language
C++
Submit At
2022-10-07 20:41:23
Judged At
2022-10-11 00:02:55
Judged By
Score
1110
Total Time
9993ms
Peak Memory
1.035 MiB