結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-19 20:13:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 464 ms |
| コンパイル使用メモリ | 53,852 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 00:36:10 |
| 合計ジャッジ時間 | 1,216 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 23 |
ソースコード
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
int N;
cin>>N;
int n2=0;
int n4=0;
int a;
for (int i=0;i<N;i++){
cin>>a;
if (a==2){
n2++;
}else if (a==4){
n4++;
}
}
cout<<n4<<" "<<n2<<endl;
return 0;
}