結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-03-23 21:10:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 293 bytes |
| コンパイル時間 | 460 ms |
| コンパイル使用メモリ | 63,360 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 18:54:00 |
| 合計ジャッジ時間 | 1,064 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int N = 0; int A = 0;
int t = 0; int c = 0;
cin >> N;
for(int i = 0; i < N; ++i){
cin >> A;
if(A % 4 == 0){ t++; }
else if(A % 2 == 0){ c++; }
}
cout << c << " " << t << endl;
return 0;
}
r2en_