結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-12-16 23:16:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 60,884 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-14 22:15:04 |
| 合計ジャッジ時間 | 1,393 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 23 |
ソースコード
#include<iostream>
#include<algorithm>
#include<queue>
#include <climits>
using namespace std;
int N;
int a[50];
int cnt[2];
int main(){
cin >> N;
for(int i = 0; i < N; i++){
cin >> a[i];
if(a[i] == 2){
cnt[1]++;
}
else if(a[i] == 4){
cnt[0]++;
}
}
cout << cnt[0] << " " << cnt[1] << endl;
return 0;
}
hamray