提出 #74738178
ソースコード 拡げる
using System;
public class Program{
static void Main(string[]args){
string[]input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
int[] current = new int[m+1];
int[] next = new int[m+1];
for(int i = 0;i <n;i++){
string[]read = Console.ReadLine().Split(' ');
int a = int.Parse(read[0]);
int b = int.Parse(read[1]);
current[a] +=1;
next[b] +=1;
}
for(int i =1;i<=m;i++){
Console.WriteLine(next[i] - current[i]);
}
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Personnel Change |
| ユーザ | naoan |
| 言語 | C# 13.0 (.NET 9.0.8) |
| 得点 | 200 |
| コード長 | 569 Byte |
| 結果 | AC |
| 実行時間 | 29 ms |
| メモリ | 25092 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 01_small_m_random_01.txt, 01_small_m_random_02.txt, 01_small_m_random_03.txt, 02_large_m_random_01.txt, 02_large_m_random_02.txt, 02_large_m_random_03.txt, 03_large_m_biased_01.txt, 03_large_m_biased_02.txt, 03_large_m_biased_03.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_01.txt | AC | 29 ms | 24976 KiB |
| 00_sample_02.txt | AC | 28 ms | 24872 KiB |
| 01_small_m_random_01.txt | AC | 28 ms | 24960 KiB |
| 01_small_m_random_02.txt | AC | 29 ms | 25028 KiB |
| 01_small_m_random_03.txt | AC | 28 ms | 25092 KiB |
| 02_large_m_random_01.txt | AC | 28 ms | 24812 KiB |
| 02_large_m_random_02.txt | AC | 28 ms | 25044 KiB |
| 02_large_m_random_03.txt | AC | 28 ms | 25052 KiB |
| 03_large_m_biased_01.txt | AC | 28 ms | 25028 KiB |
| 03_large_m_biased_02.txt | AC | 28 ms | 25052 KiB |
| 03_large_m_biased_03.txt | AC | 28 ms | 24976 KiB |