結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
RCCW
|
| 提出日時 | 2017-02-04 11:47:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 1,401 ms |
| コンパイル使用メモリ | 157,540 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 06:11:06 |
| 合計ジャッジ時間 | 2,472 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 20 |
ソースコード
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#include <math.h>
int main() {
int n,m,a;
int ca=0,cb=0;
cin>>a;
for (int i = 0; i < a; ++i) {
cin>>n;
if (n==2) {
ca++;
}else{
cb++;
}
}
cout<<cb<<" "<<ca<<endl;
}
RCCW