結果
問題 |
No.360 増加門松列
|
ユーザー |
![]() |
提出日時 | 2016-04-18 00:13:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 652 ms |
コンパイル使用メモリ | 61,196 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 11:17:54 |
合計ジャッジ時間 | 1,462 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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++; if (count == 3) { cout << "NO" << endl; return 0; } } cout << "YES" << endl; return 0; }