|
|
|
|
|
|
1 Антонио, 08 декабря 2023 г. 12:39:01 |
Не могу придумать причину почему не проходит 8 тест. Подскажите пожалуйста
|
|
|
2 Цупа Роман Павлович, 03 мая 2021 г. 9:19:03 |
#include<bits/stdc++.h> #define ll long long using namespace std; pair <long long, long long>a[100000]; int dp[2000][1000], s1[10001]; vector< int> v; long long c[1001]; typedef vector<int> lll; #define pb push_back istream& operator >>(istream& stream,lll& a) { string s; stream>>s; for(int i=s.size()-1; i>=0; --i) a.pb(s[i]-'0'); return stream; } ostream& operator <<(ostream& stream,lll a) { for(int i=a.size()-1; i>=0; --i) stream<<a[i]; return stream; } lll operator &(lll a,ll b) { lll c; int i; ll r=0; if(b==0) { c.pb(0); return c; } for(i=0; i<a.size(); ++i) { r+=a[i]*b; c.pb(r%10); r/=10; } while(r) { c.pb(r%10); r/=10; } return c; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); long long s = 0, n; cin >> n; if(n == 1) { cout << 1;33333333333333333333333333
|
|
|
Чтобы оставить сообщение необходимо зарегистрироваться и авторизоваться!
| | | |