結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
|
提出日時 | 2020-06-10 08:48:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 1,185 ms |
コンパイル使用メモリ | 91,868 KB |
最終ジャッジ日時 | 2025-01-11 00:44:39 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 19 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <math.h> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; int m=0, p=0; while(n--){ int x; cin >> x; if(x==4)m++; else p++; } printf("%d %d\n",m,p); }