結果
| 問題 | 
                            No.29 パワーアップ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             water_is_I
                         | 
                    
| 提出日時 | 2017-09-24 03:33:38 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,107 bytes | 
| コンパイル時間 | 882 ms | 
| コンパイル使用メモリ | 108,400 KB | 
| 実行使用メモリ | 26,784 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:02:59 | 
| 合計ジャッジ時間 | 1,947 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 21 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace YukiCorderNo29_20170924 {
    class Program {
        static void Main(string[] args) {
            string N;
            N = Console.ReadLine();
            int[] itemBox = new int[Int32.Parse(N) * 3];
            for (int i = 1; i <= Int32.Parse(N); i++) {
                string[] inputItem = Console.ReadLine().Split(' ');
                for (int j = 0; j < 3; j++) {
                    itemBox[(i - 1) * 3 + j] = Int32.Parse(inputItem[j]);
                    //Console.WriteLine((i - 1) * 3 + j + ": " + itemBox[(i - 1) * 3 + j]);
                }
            }
            int powerUp = 0;
            int num = 0;
            for (int i = 1; i <= 10; i++) {
                for (int j = 0; j < itemBox.Length; j++) {
                    //num=0;
                    if (itemBox[j] == i) {
                        num++;
                        //Console.WriteLine("numAdd");
                    }
                    //Console.WriteLine(num);
                }    
            }
            powerUp += num / 2;
            Console.WriteLine(powerUp);
        }
    }
}
            
            
            
        
            
water_is_I