結果
| 問題 | No.112 ややこしい鶴亀算 |
| コンテスト | |
| ユーザー |
abchsbriic
|
| 提出日時 | 2017-10-17 15:55:20 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 543 bytes |
| 記録 | |
| コンパイル時間 | 1,762 ms |
| コンパイル使用メモリ | 83,152 KB |
| 実行使用メモリ | 47,040 KB |
| 最終ジャッジ日時 | 2026-05-12 15:42:43 |
| 合計ジャッジ時間 | 4,428 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 23 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
//ここから処理開始
int N = sc.nextInt();
int[] s = new int[N];
for(int i=0;i<N;i++){
s[i] = sc.nextInt();
}
int turu = 0;
int kame = 0;
for(int i=0;i<N;i++){
if(s[i]==2)turu++;
if(s[i]==4)kame++;
}
System.out.println(kame+" "+turu);
//ここまで
sc.close();
}
}
abchsbriic