Nama Soal Pembagian Ring Road Batas Waktu 1 detik Nama Berkas Ringroad[1..10].out Batas Memori 32 MB Tipe [output only] Sumber Brian Marshal

dokumen-dokumen yang mirip
Praktikum String, StringBuffer dan StringBuilder

Saher System. English. indonesia. Road Safety 996

Problem 1. Implementasi Interface. Diberikan definisi interface BentukDuaDimensi berikut:

Line VS Bezier Curve. Kurva Bezier. Other Curves. Drawing the Curve (1) Pertemuan: 06. Dosen Pembina Danang Junaedi Sriyani Violina IF-UTAMA 2

Pemrograman Lanjut. Interface

Secuil Cerita tentang Facebook Hacker Cup 2012 Qualification Round [Part II]

Praktikum Metode Komputasi (Vector Spaces)

IMPLEMENTASI PERANGKAT LUNAK DENGAN PENERAPAN PENCARIAN RELATIF (HASH SEARCH)

Arsitektur Komputer. Pertemuan ke-2 - Aritmatika Komputer >>> Sistem bilangan & Format Data - Perkembangan Perangkat Keras Komputer

KESASTRAAN MELAYU TIONGHOA DAN KEBANGSAAN INDONESIA: JILID 2 FROM KPG (KEPUSTAKAAN POPULER GRAMEDIA)

Metode Statistika (STK211) Statistika Deskriptif (1) Dr. Ir. Kusman Sadik Dept. Statistika IPB, 2015

SORTING (BAGIAN II) Proses kelima

Statistik Farmasi Probabilitas

Data Structures. Class 5 Pointer. Copyright 2006 by The McGraw-Hill Companies, Inc. All rights reserved.

Connecting & Using the BGAN for Internet Access Menghubungkan dan Menggunakan Alat BGAN

Data Structures. Class 4 Arrays. Pengampu : TATI ERLINA, M.I.T. Copyright 2006 by The McGraw-Hill Companies, Inc. All rights reserved.

TRANSPOSITION TECHNIQUE

OBJECT ORIENTED PROGRAMMING. Day 3 : Operator dan Assignment

Pemrograman Berorientasi Object. IMade Suartana, S.Kom, M.Kom

Adam Mukharil Bachtiar English Class Informatics Engineering Algorithms and Programming Searching

Nama Soal Peta Jalan Batas Waktu - Nama Berkas peta[no.urut].out.[1..10] Batas Memori - Tipe output only Sumber Prima Chairunnanda

32-bit and 64-bit Windows: Frequently asked questions

ANALISIS CAPAIAN OPTIMASI NILAI SUKU BUNGA BANK SENTRAL INDONESIA: SUATU PENGENALAN METODE BARU DALAM MENGANALISIS 47 VARIABEL EKONOMI UNTU

ADDING RTGS BENEFICIARY FOR CHECKER MAKER SYSTEM

TIF APPLIED MATH 1 (MATEMATIKA TERAPAN 1) Week 3 SET THEORY (Continued)

Latihan soal decision making

APLIKASI TEORI GELOMBANG KEJUT DALAM PENENTUAN PANJANG ANTRIAN KENDARAAN PADA LENGAN PERSIMPANGAN BERSINYAL

1/5. while and do Loops The remaining types of loops are while and do. As with for loops, while and do loops Praktikum Alpro Modul 3.

Sistem Informasi. Soal Dengan 2 Bahasa: Bahasa Indonesia Dan Bahasa Inggris

A. B. C. D. Jika diberikan, maka nilai terbesar dari adalah A B. C. D.

KAJIAN MODEL PERKIRAAN AWAL BIAYA PADA-PROYEK PENINGKATAN JALAN KABUPATEN DI KABUPATEN SUMEDANG TESIS MAGISTER. Oleh: AGUS SUTOPO NIM :

12/8/2012 MODUL -10. Apa itu SPSS? Apa yang bisa dilakukan SPSS? Apa kesamaan SPSS dengan Microsoft Office Excel?

Operator dan Assignment. Pertemuan 3 Pemrograman Berbasis Obyek

Rekursif. Proses yang memanggil dirinya sendiri. Merupakan suatu fungsi atau prosedur Terdapat suatu kondisi untuk berhenti.

UJI HIPOTESIS STATISTIK NON PARAMETRIK.

Teddy Mantoro.

Latihan soal (mata kuliah: Teknik Riset Operasi) By. Rita Wiryasaputra, ST., M. Cs.

Pemrograman Web. Object Oriented Programming in PHP 5

ADLN-Perpustakaan Universitas Airlangga

SECURE LOGIN WEB MENGGUNAKAN GAMBAR ACAK

DEVIS ZENDY NPM :

SOAL EKSPLORASI. Jawab: (a) Tiga buah (4 4 1, 3 3 3, 4 3 2) Skema penilaian: Satu jawaban benar nilainya 1. Dua jawaban benar nilainya

ABSTRAK. Kata Kunci: Proyeksi Permintaan, Optimasi, Integer Linear Programming.

1-x. dimana dan dihubungkan oleh teorema Pythagoras.

2013 PENERAPAN METODE KERJA KELOMPOK UNTUK MENINGKATKAN PEMAHAMAN KONSEP OPERASI HITUNG BILANGAN BULAT PADA ANAK DIDIK

Keseimbangan Torsi Coulomb

Answer: (Buku Ajar Kimia Umum,hal 9)

SISTEM DINAMIK TUGAS 3. Oleh RIRIN SISPIYATI ( ) Program Studi Matematika

ADLN - PERPUSTAKAAN UNIVERSITAS AIRLANGGA

Inggang Perwangsa Nuralam, SE., MBA

EVALUASI EFISIENSI PERTUKARAN TRAYEK BUS BESAR DI DKI JAKARTA TESIS MAGISTER. Oleh : NADIA KHAIRA ARDI NIM :

Outline. Struktur Data & Algoritme (Data Structures & Algorithms) Pengantar. Definisi. 2-3 Trees

TUGAS BROWSING. Diajukan untuk memenuhi salah satu tugas Eksperimen Fisika Dasar 1. Di susun oleh : INDRI SARI UTAMI PEND. FISIKA / B EFD-1 / C

EVALUASI KARAKTERISTIK PARKIR RS. PKU MUHAMMADIYAH YOGYAKARTA

Implementasi Pemrograman Dinamis dalam Pencarian Solusi Permainan Menara Hanoi

ABSTRAK. Universitas Kristen Maranatha

Subnetting & CIDR. Fakultas Rekayasa Industri Institut Teknologi Telkom

CBN setup guideline for Ms. Outlook 2013/2016

T DAR INTEGRAL TAK MUTLAK

APLIKASI X RAY VOXEL MONTE CARLO (XVMC) UNTUK MENYELIDIKI KARAKTERISASI DOSIS DENGAN BANYAK BERKAS FOTON

Teknik Kreatif Menyajikan Presentasi Memukau (Indonesian Edition)

ANALISIS KINERJA MANAJEMEN (INDONESIAN EDITION) BY HERY HERY

JARINGAN KOMPUTER. 2. What is the IP address and port number used by gaia.cs.umass.edu to receive the file. gaia.cs.umass.edu :

6 KERANJANG 7 LANGKAH API (INDONESIAN EDITION) BY LIM TUNG NING

UML USE CASE DIAGRAM

EFISIENSI JUMLAH ARMADA BUS PATAS AC ANTAR BEBERAPA PERUSAHAAN BERDASARKAN METODE PERTUKARAN TRAYEK DI DKI JAKARTA TESIS

ABSTRACT. Keyword: Algorithm, Depth First Search, Breadth First Search, backtracking, Maze, Rat Race, Web Peta. Universitas Kristen Maranatha

Sistem Basis Data. Pertemuan 3 : Modeling Data in Organization Andronicus Riyono, M.T.

Latihan 1. Praktikum 2 Bahasa Pemrograman PLT Scheme : Membuat Program

JARINGAN KOMPUTER : ANALISA TCP MENGGUNAKAN WIRESHARK

Pelabelan Pseudo Edge-Magic dan Pseudo Vertex-Magic pada Graf Sebarang

Topi Anda akan membutuhkan untuk melakukan langkah-langkah ini adalah 1. A Windows 98 CD 2. A Komputer dengan CD-ROM akses

SUKSES BERBISNIS DI INTERNET DALAM 29 HARI (INDONESIAN EDITION) BY SOKARTO SOKARTO

How To Shop: 1.

MANAJEMEN PROYEK LANJUT

KEMAMPUAN MENDENGARKAN LAGU BERBAHASA INGGRIS PADA SISWA KELAS X SMA ISLAMIC CENTRE DEMAK PADA TAHUN AJARAN 2006/2007

ICE BREAKERS GETARAN LISTRIK. Persiapan

Langkah-langkah untuk Mendownload Software SMART PLS 2.0 dan LISREL

Rule OlyQ - Line Tracer - Versi Inggris Indonesia

PENGONTROL TEMPERATUR CAMPURAN AIR DENGAN LOOK-UP TABLE BERBASIS MIKROKONTROLER AVR ABSTRAK

Soal Penyisihan Olimpiade Matematika Vektor Nasional 2011 tingkat SD (sederajat)

ABSTRAKSI. Universitas Kristen Maranatha

TUGAS KIMIA UMUM. yang identik dan berbeda untuk unsur yang berbeda

ABSTRACT. Keywords: forecasting, forecasting method, production planning, and the strategy of production planning. Universitas Kristen Maranatha

Analisis Dasar dalam Runtun Waktu

STUDI PENENTUAN LOKASI TRAFFIC COUNT TERBAIK DAN JUMLAH DATA ARUS LALULINTAS OPTIMUM DALAM ESTIMASI MATRIKS ASAL TUJUAN (MAT) TESIS MAGISTER

Pertemuan 3: Struktur Kontrol Pemrograman


FIRE CLAIM FORM SURAT KLAIM KEBAKARAN

MISTERI PEMBUNUHAN DI KAKEK BODO (INDONESIAN EDITION) BY S. MARA GD.

ABSTRAK. Kata kunci: Arduino, Switch, Access Point, LED, LCD, Buzzer, . i Universitas Kristen Maranatha

What is it? 3 x 4 Keypad 4 x 4 Keypad

Turing and State Machines. Mesin Turing. Turing Machine. Turing Machines 4/14/2011 IF_UTAMA 1

Pengenalan Sistem Bilangan Biner dan Gerbang Logika

Melakukan Operasi Logika

FISIKA THERMAL II Ekspansi termal dari benda padat dan cair

PRIMA Volume 3, Nomor 6, November 2006 ISSN

TESIS untuk MAGISTER HUKUM PROGRAM MAGISTER HUKUM KONSENTRASI HUKUM KESEHATAN. Diajukan oleh : Erfen Gustiawan Suwangto NIM

SIMULASI MONTE CARLO RISK MANAGEMENT DEPARTMENT OF INDUSTRIAL ENGINEERING

Transkripsi:

Nama Soal Pembagian Ring Road Batas Waktu 1 detik Nama Berkas Ringroad[1..10].out Batas Memori 32 MB Tipe [output only] Sumber Brian Marshal Deskripsi Soal Dalam rangka mensukseskan program Visit Indonesia, Jogja sebagai salah satu kota pariwisata berusaha untuk memperbaiki segala hal, termasuk jalan Ring Road! Terdapat N (1 N 50) bagian jalan Ring Road, masing-masing memiliki panjang L i (1 Li 10000). Untuk memperbaiki kesuluruhan jalan Ring Road, pemerintah menyadari bahwa bekerja sama hanya dengan satu kontraktor (bahkan kontraktor terhebat sekalipun) belum tentu optimal. Oleh karena itu pemerintah kini akan bekerja sama dengan maksimal M (1 M 15) kontraktor. Masing-masing kontraktor memiliki kecepatan kerja S i (1 S i 10000). Kontraktor ke-i dapat menyelesaikan proses perbaikan jalan ke-j dengan durasi S i /L i bulan. Karena jumlah kontraktor yang lebih sedikit dari jumlah bagian jalan, maka satu kontraktor mungkin mendapatkan lebih dari 1 bagian jalan. Tapi untuk kemudahan dan efisiensi, suatu kontraktor hanya dapat memperbaiki lebih dari 1 bagian jalan jika bagian jalan tersebut berderetan (dapat dilihat sebagai satu kesatuan yang tak putus). Tidak semua kontraktor harus mendapatkan bagian dari proyek ini. Kini pemerintah meminta bantuan Anda untuk membagi proyek ini agar masa pengerjaannya seminimal mungkin. Sebagai catatan, semua kontraktor yang telah ditugaskan akan memulai pekerjaan mereka secara serentak. Spesifikasi Masukan Baris pertama berisi sebuah bilangan bulat N. Baris kedua berisi N buah bilangan bulat yang merupakan panjang dari tiap bagian jalan Ring Road dimulai dari bagian 1 sampai bagian N. Baris ketiga berisi sebuah bilangan bulat M. Baris keempat berisi M buah bilangan bulat yang merupakan kecepatan tiap kontraktor dimulai dari kontraktor 1 sampai kontraktor M. Spesifikasi Keluaran Daftar pembagian proyek, berisi maksimal M baris. Pada setiap baris terdapat tiga buah bilangan bulat P i, A i, B i dimana P i adalah nomor kontraktor, A i adalah nomor bagian jalan awal dan B i adalah nomor bagian jalan akhir yang ditugaskan pada kontraktor P i. Keluaran harus terurut dari bagian jalan (A i ) yang bernomor kecil, tapi untuk nomor kontraktor P i tidak diharuskan terurut. Semua bagian jalan harus terselesaikan! Contoh Masukan 1 7 1 2 1 4 2 1 1 3 1 2 3 Contoh Keluaran 1 2 1 3 3 4 5 1 6 7 (Tugaskan kontraktor nomor dua untuk mengerjakan bagian jalan ke-1 sampai ke-3, lalu bagian jalan ke-4 sampai ke-5 untuk kontraktor nomor tiga, dan bagian jalan ke-6 sampai ke-7 untuk kontraktor nomor satu. Penugasan ini membutuhkan tepat 2 bulan untuk menyelesaikan seluruh bagian jalan. Untuk kasus ini, tidak ada jalan lain untuk menyelesaikan seluruh bagian jalan dengan waktu kurang dari 2 bulan.) Contoh Masukan 2 2 2 2 Halaman 1 dari 6

2 2 3 Contoh Keluaran 2 2 1 1 1 2 2 (Masing-masing kontraktor mendapatkan satu bagian jalan dan seluruh pekerjaan akan selesai dalam 1 bulan.) Penilaian Soal ini menggunakan sistem output only dan relative scoring. Jadi, keluaran yang memberikan waktu tersingkat akan mendapatkan poin 100 untuk kasus tersebut, sedangkan keluaran lainnya yang tidak memberikan waktu tersingkat akan mendapatkan nilai relatif terhadap waktu tersingkat tersebut. Halaman 2 dari 6

Nama Soal Cars Parking Batas Waktu 1 detik Nama Berkas car.cpp /.c /.pas Batas Memori 32 MB Tipe [batch] Sumber IOI Task Description A parking center by the Great Wall has a long row of parking places. One end of the row is considered left and the other end is considered right. The row is full of cars. Each car has a type and several cars may be of the same type. The types are identified by integer values. A number of workers decide to order the cars parked in the row in ascending order from left to right by the car types using the following method. In what is called a round, each of the workers can simultaneously drive one car out of its place and then park it in a place from where a car has been moved out in the same round. It may be that some workers are not moving a car in a round. For efficiency, a small number of rounds is preferable. Suppose that N is the number of cars and W is the number of workers. You are to write a program which, given the types of the parked cars and the number of workers, finds such a way to sort the cars that the number of rounds needed is at most N/(W-1), that is N/(W-1) rounded up. The minimal number of rounds is never greater than N/(W-1). Consider the following example. There are 10 parked cars of types 1,2,3, and 4 with 4 workers. The initial placement of the cars from left to right identified by their types is 2 3 3 4 4 2 1 1 3 1. The minimal number of rounds is three, and the rounds can be implemented so that the placement after each round is as follows: 2 1 1 4 4 2 3 3 3 1 after round 1, 2 1 1 2 4 3 3 3 4 1 after round 2, and 1 1 1 2 2 3 3 3 4 4 after round 3. INPUT The first line in the input file contains three integers. The first integer is the number of cars N, 2<=N<=20000. The second integer is the number of types M, 2<=M<=50. The car types are identified by the integers from 1 to M. There is at least one car of each type. The third integer is the number of workers W, 2<=W<=M. The second line contains N integers, where the ith integer is the type of the ith car in the row, starting from the left end of the row. OUTPUT The first line of the output file contains one integer R, which is the number of rounds in the solution. The next R lines describe the rounds ordered from 1 to R. In each line, the first integer is the number of cars C, which are moved in that round. After that follow 2C integers, identifying car positions. The car positions are identified by the integers from 1 to N starting at the left end. The first two are a pair describing how one of the cars is moved: the first integer is the position from the left end before the round and the second is the position from the left after the round. The next two integers are a pair describing how another car is moved, and so on. There may be several different solutions for these R lines, and your program only needs to output one of them. EXAMPLE INPUT AND OUTPUT INPUT 10 4 4 2 3 3 4 4 2 1 1 3 1 Halaman 3 dari 6

OUTPUT 3 4 2 7 3 8 7 2 8 3 3 4 9 9 6 6 4 3 1 5 5 10 10 1 PARTIAL CREDIT Suppose that your program s output for an evaluation run is R and n/(w-1) is Q. If in your program s output the R rounds are not described correctly or they do not produce the desired order for the cars, then your score is 0. Otherwise, your score will be calculated from the maximum score as follows. R<=Q 100% Score R=Q+1 50% Score R=Q+2 20% Score R>=Q+3 0% Score Halaman 4 dari 6

Nama Soal At Yogya's End Batas Waktu 1 detik Nama Berkas aye.cpp /.c /.pas Batas Memori 32 MB Tipe [batch] Sumber Listiargo Pak Blangkon (baca = P@ck 131@n6k0n) telah kembali ke Planet Yogya(baca = Y06y@). Sekarang ia sedang mengamati kumpulan gedung di Malioboro ( baca = m@l10130r0) sehingga ia bisa melihat bayangan-bayangan dari gedung-gedung itu. Pak Blangkon mencatat N(5 <= N <= 1000000) posisi sudut kiri dari bayangan yang mungkin adalah sebuah gedung dalam format (X, Y)(0 <= X, Y <= 1000000000). Pak Blangkon sadar bahwa mungkin bisa ada tak hingga gedung bila ia mengamatinya melalui data yang ia miliki. Lalu Pak Blangkon menyuruh anda para TOKI-ers(Tim Operasional Kekomputeran Intergalaktik-ers) untuk menentukan gedung minimum yang memenuhi data yang diberikan Pak Blangkon. Input Baris pertama terdiri dari 1 angka, N N baris selanjutnya terdapat masing masing 2 bilangan X, Y. Nilai X dijamin akan unik. Output Sebuah bilangan yang menentukan jumlah minimum gedung yang mungkin dari data yang diberikan Pak Blangkon. Contoh Input 1 6 3 2 0 0 1 5 8 4 10 0 9 2 Contoh Output 1 3 Penjelasan Input : Ada 7 posisi unik, bentuk yang kira-kira dilihat Pak Blangkon adalah seperti ini(yang ditandai X berarti posisi dibawahnya di catat oleh Pak Blangkon) Halaman 5 dari 6

6 X 5 5 5 X 4 5 5 4 3 5 5 X 4 X 2 5 5 2 2 2 2 2 4 2 1 X 5 5 2 2 2 2 2 4 2 X 0 1 2 3 4 5 6 7 8 9 10 Dapat disimpulkan bahwa terdapat paling sedikit 3 gedung (gedung dengan tinggi 5, tinggi 2 dan tinggi 4) Halaman 6 dari 6