結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
![]() |
提出日時 | 2015-12-23 13:36:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 1,223 ms |
コンパイル使用メモリ | 158,852 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-18 21:43:41 |
合計ジャッジ時間 | 2,099 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int x; int tsuru = 0,kame = 0; while(cin >> x){ if(x == 2) kame++; if(x == 4) tsuru++; } cout << tsuru << " " << kame << endl; return 0; }