Submission #8401436
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main() { vector<int> data(5); for(int i = 0; i < 5; i++) { cin >> data.at(i); if(data.at(i)==data.at(i+1)){ cout<<"YES"<<endl; break; } if(i==4){ cout<<"NO"<<endl; } }// dataの中で隣り合う等しい要素が存在するなら"YES"を出力し、そうでなければ"NO"を出力する // ここにプログラムを追記 }
Submission Info
Submission Time | |
---|---|
Task | EX16 - 2.01 |
User | pw_miyamoto |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 438 Byte |
Status | RE |
Exec Time | 335 ms |
Memory | 384 KB |
Judge Result
Set Name | all | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
all | sample01.txt, sample02.txt, sample03.txt, sample04.txt, test01.txt, test02.txt, test03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample01.txt | RE | 335 ms | 384 KB |
sample02.txt | RE | 100 ms | 256 KB |
sample03.txt | RE | 100 ms | 256 KB |
sample04.txt | RE | 99 ms | 256 KB |
test01.txt | AC | 1 ms | 256 KB |
test02.txt | AC | 1 ms | 256 KB |
test03.txt | RE | 100 ms | 256 KB |