CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:Samiismail
Submission time:2022-10-31 14:34:15 +0200
Language:C++17
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.00 sdetails
#2ACCEPTED0.00 sdetails
#30.00 sdetails
#40.00 sdetails
#50.00 sdetails
#60.00 sdetails

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:13:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 | if(n==1)cout << "NO"; return 0;
      | ^~
input/code.cpp:13:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   13 | if(n==1)cout << "NO"; return 0;
      |                       ^~~~~~
input/code.cpp:14:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   14 | if(n>1 && n<=26) cout << "MAYBE"; return 0;
      | ^~
input/code.cpp:14:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   14 | if(n>1 && n<=26) cout << "MAYBE"; return 0;
      |                                   ^~~~~~
input/code.cpp:15:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   15 | if(n>26)cout << "YES"; return 0;
      | ^~
input/code.cpp:15:24: note: ...this statement, but the latter is misleadingly indented as if it...

Code

#include<bits/stdc++.h>
using namespace std;
typedef long long ll; 



 
int main(){


int n; cin >> n; 

if(n==1)cout << "NO"; return 0; 
if(n>1 && n<=26) cout << "MAYBE"; return 0; 
if(n>26)cout << "YES"; return 0;


}


Test details

Test 1

Verdict:

input
0

correct output
NO

user output
(empty)

Test 2

Verdict: ACCEPTED

input
1

correct output
NO

user output
NO

Test 3

Verdict:

input
2

correct output
MAYBE

user output
(empty)

Test 4

Verdict:

input
26

correct output
MAYBE

user output
(empty)

Test 5

Verdict:

input
27

correct output
YES

user output
(empty)

Test 6

Verdict:

input
52

correct output
YES

user output
(empty)