Skip to content

バブルソート機 (Bubble Sort Machine)

Unrated
日本語

Language

Contribute a translation
Time limit
10000 ms
Memory limit
512 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

Examples

Sample input 1
4
5 3 5 2
6
2 1 3
1
2 1 1
2 2 4
1
2 1 2
Sample output 1
13
3
12
5
Sample input 2
5
1 1 2 1 2
5
2 2 3
1
2 2 4
1
2 2 4
Sample output 2
3
4
4

Notes

Tags

No tags yet

Source