Submission #1283891
Source Code Expand
#include <cstdio>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <vector>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
int main(){
int A,B,C;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
if(C >= A && C <= B){
printf("Yes\n");
}
else{
printf("No\n");
}
}
Submission Info
Submission Time |
|
Task |
A - Between Two Integers |
User |
uynet |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
492 Byte |
Status |
AC |
Exec Time |
0 ms |
Memory |
128 KB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:17:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&A);
^
./Main.cpp:18:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&B);
^
./Main.cpp:19:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&C);
^
Judge Result
Set Name |
Sample |
All |
Score / Max Score |
0 / 0 |
100 / 100 |
Status |
|
|
Set Name |
Test Cases |
Sample |
sample_01.txt, sample_02.txt, sample_03.txt |
All |
sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt |
Case Name |
Status |
Exec Time |
Memory |
sample_01.txt |
AC |
0 ms |
128 KB |
sample_02.txt |
AC |
0 ms |
128 KB |
sample_03.txt |
AC |
0 ms |
128 KB |
subtask_1_1.txt |
AC |
0 ms |
128 KB |
subtask_1_2.txt |
AC |
0 ms |
128 KB |
subtask_1_3.txt |
AC |
0 ms |
128 KB |
subtask_1_4.txt |
AC |
0 ms |
128 KB |
subtask_1_5.txt |
AC |
0 ms |
128 KB |
subtask_1_6.txt |
AC |
0 ms |
128 KB |
subtask_1_7.txt |
AC |
0 ms |
128 KB |