Rank Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
13801
BL8A23_AnhDV
Việt Anh
1296 2
13802 1295 2
13803
OLP4SC098
Nguyễn Trọng Văn Viết
1294 3
13804
_Thanhbinh08
Dương Lê Thanh Bình 10V
1294 20
13805 1294 22
13806
Simp
Lê Minh Đức
1294 16

Lê Minh Đức _ 2009 _ Trần Mai Ninh

13807 1294 6
13808 1294 7
13808 1294 7
13810 1294 7
13811 1294 7
13812 1294 12
13813 1294 8
13814 1293 5
13815 1292 5
13816 1292 1
13817 1292 2

kcj

13818
STR32Chi
Văn Khánh Chi
1292 10
13819 1290 9
13820 1290 4
13821 1289 5
13821 1289 5
13823
Quandt
VNG232629_Do_Trung_Quan
1288 5
13824 1288 7
13825 1287 2

Dep trai khoai to

13825 1287 2
13825 1287 2
13828 1287 7
13829 1286 6
13830 1286 17
13831
zzz
=))
1285 2
13832 1285 4
13833 1285 20
13834 1285 3
13835 1285 20
13835 1285 20
13837 1284 7
13838 1284 2
13839 1283 3
13839 1283 3

10-grade

13839 1283 3
13842
BL8D23_DũngNĐĐ
Nguyễn Đặng Đình Dũng
1282 19
13843 1280 5
13843 1280 5
13845 1280 1
13845 1280 1
13847 1280 13
13848 1279 7
13848 1279 7
13850 1278 3
13851 1277 3

x,n,m = map(int,input().split())
t = 0
for i in range(n+1):
t += x**n
print(t % m)

13852 1277 6
13853 1277 2
13854 1277 2
13854 1277 2
13856 1277 4
13857 1276 2
13858 1275 4
13859 1275 1
13860
TuanLovesCPP
Nguyễn Thanh Tuấn
1275 12

Tôi Là Người Mới Học Lập Trình

13861
Minhmon0107
Trần Ngọc Minh
1275 9
13862 1275 4
13863
KINGYEAH
BÙI GIA BẢO - TH2
1274 21
13864 1273 1

include<iostream>

include <ext/pb_ds/assoc_container.hpp>

include <ext/pb_ds/tree_policy.hpp>

include<math.h>

include<algorithm>

include<stdio.h>

include<map>

include<vector>

include<set>

include<iomanip>

define F first

define S second

define P system("PAUSE");

define H return 0;

define pb push_back

define mod 1000000007

using namespace std;
using namespace __gnu_pbds;
bool sc(pair<int ,int> a, pair<int,int> b)
{
if(a.F==b.F)
return b.S<a.S; else return a.F\<b.F; } typedef tree\<int,null_type,less\<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin>>n;
map<pair\<int,int>,pair\<int, int>> res;
vector<pair\<int,int>> a(n),b;
for(int i=0;i<n;i++) cin>>a[i].F>>a[i].S;
b=a;
sort(a.begin(),a.end(),greater());

set<int> luu;
luu.insert(a[0].S);
int minn,maxx;
minn=a[0].S;
for(int i=1;i<n;i++)
{
    if(a[i].S>=minn)
    res[a[i]].F=1;
    else minn=a[i].S;

}
 for(int i=0;i<n;i++)
cout<<a[i].F<<' '<<a[i].S<<endl; 
sort(a.begin(),a.end(),sc);
maxx=a[0].S;
luu.clear();
luu.insert(a[0].F);

for(int i=1;i<n;i++)
{
    if(a[i].S<=maxx)
    res[a[i]].S=1;
    else maxx=a[i].S;
}
 for(int i=0;i<n-1;i++)
 cout<<res[b[i]].F<<' ';
   cout<<res[b[n-1]].F;
 cout<<endl;
 for(int i=0;i<n-1;i++)
 cout<<res[b[i]].S<<' ';
 cout<<res[b[n-1]].S;

}

13865 1273 3
13866 1272 8
13867 1270 3
13868 1270 4
13868 1270 4
13870 1268 9
13871 1268 3
13872 1268 18
13873 1267 2
13874 1267 3
13875 1267 13
13876 1267 8
13877 1266 3
13878 1266 10
13879 1266 5
13880 1266 6
13881 1265 7
13881
29211458148
Lê Đức Anh
1265 7
13883 1265 4
13884 1264 6
13885 1264 4
13886
tranngocthu1612
Trần Thị Ngọc Thư
1263 20
13887 1263 3
13888 1262 19
13888 1262 19
13888
thanhtruc08
nguyen vi thanh truc 10 hoa
1262 19
13888
thaile422008
LÊ ĐÌNH THÁI LỚP VĂN
1262 19
13888
nhk28092008
Nguyễn Hoàng Kim 10 Anh
1262 19

Nguyễn Hoàng Kim
10 Anh

13888 1262 19
13888 1262 19
13895 1262 8
13896 1261 2

None

13897 1260 7
13898 1260 7
13899 1260 4
13900 1260 1