[백준 24724] 현대모비스와 함께하는 부품 관리 (C#, C++) - soo:bak
작성일 :
문제 링크
설명
각 테스트케이스마다 고정된 안내 문구를 출력하는 문제입니다.
접근법
입력은 모두 읽고 버립니다.
테스트케이스 번호와 함께 두 줄의 문구를 출력합니다.
Code
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
class Program {
static void Main() {
var t = int.Parse(Console.ReadLine()!);
for (var tc = 1; tc <= t; tc++) {
var n = int.Parse(Console.ReadLine()!);
Console.ReadLine();
for (var i = 0; i < n; i++)
Console.ReadLine();
Console.WriteLine($"Material Management {tc}");
Console.WriteLine("Classification ---- End!");
}
}
}
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
if (!(cin >> t)) return 0;
for (int tc = 1; tc <= t; tc++) {
int n; cin >> n;
ll a, b; cin >> a >> b;
for (int i = 0; i < n; i++) {
ll u, v; cin >> u >> v;
}
cout << "Material Management " << tc << "\n";
cout << "Classification ---- End!\n";
}
return 0;
}