結果
問題 |
No.360 増加門松列
|
ユーザー |
![]() |
提出日時 | 2016-04-18 00:09:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 511 ms |
コンパイル使用メモリ | 60,612 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 11:15:06 |
合計ジャッジ時間 | 1,233 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 12 |
ソースコード
#include <stdio.h> #include <iostream> #include <algorithm> #include<string> #include <math.h> using namespace std; int main() { int a[7]; int count = 0,p=1; cin >> a[0]; for (int i = 1; i < 7; i++) { cin >> a[i]; if (a[i - 1] == a[i])count++; else { count = 0; p++; } if (count == 3) { cout << "NO" << endl; return 0; } } cout << "YES" << endl; return 0; }