結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
abchsbriic
|
| 提出日時 | 2017-10-17 15:55:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 543 bytes |
| コンパイル時間 | 2,246 ms |
| コンパイル使用メモリ | 86,028 KB |
| 実行使用メモリ | 42,628 KB |
| 最終ジャッジ日時 | 2024-11-17 21:57:34 |
| 合計ジャッジ時間 | 6,858 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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