題目:?http://codeforces.com/contest/260/problem/A 思路:a%b==0 => a*10^n%b==0 這題一開始忽略了一句話??If there are multiple possible answers, print any of them. code1083,想了半天覺得答案不只一種啊 然后看到n的范圍就知道
題目鏈接:http://codeforces.com/problemset/problem/1189/B codepage=1208,AC代碼: #include<bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[maxn];
int b[maxn];
int c[maxn];
bool check(int i)
{if(a[i] &
839B - Game of the Rows 思路:先放4个的,然后再放2个的,最后再放1个的。 代码: #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mem(a,b) memset((a),(b),sizeof(a))
int a[10
C. Bus time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A bus moves along the coordinate line Ox from the point x = 0 to the point x = a. After starting from the point x = 0,