結果
問題 | No.1027 U+1F4A0 |
ユーザー |
![]() |
提出日時 | 2020-04-17 21:25:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,988 bytes |
コンパイル時間 | 1,266 ms |
コンパイル使用メモリ | 125,368 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-03 11:07:48 |
合計ジャッジ時間 | 2,063 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include<iostream>#include <vector>#include <set>#include <map>#include <string>#include <cstdio>#include <cstdlib>#include <climits>#include <utility>#include <algorithm>#include <cmath>#include <queue>#include <stack>#include <iomanip>#include<unordered_map>#include <ext/pb_ds/assoc_container.hpp>#include <ext/pb_ds/tree_policy.hpp>using namespace std;using namespace __gnu_pbds;const long long int mod1=1000000007;const long long int mod2 = -1;#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);#define pb push_back#define pp pop_back#define ff first#define ss second#define ll long long int#define ull unsigned long long int#define ordered_set tree<ll,null_type,less_equal<ll>,rb_tree_tag,tree_order_statistics_node_update>#define ordered1 tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update>#define inf mod1#define all(x) x.begin(),x.end()ll gcd(ll a, ll b){ll c;while(b){c = b;b = a % b;a = c;}return a;}ll power1(ll a, ll b){if(b == 0) return 1;else if(b % 2) return a * power1(a, b - 1);else {ll temp = power1(a, b / 2);return temp * temp;}}ll power2(ll a, ll b, ll m){a %= m;if(b == 0) return 1;else if(b % 2) return (a * power2(a, b - 1, m)) % m;else{ll temp = power2(a, b / 2, m);return (temp * temp) % m;}}ll mod(ll x, ll p){return (x % p + p) % p;}ll lcm(ll x, ll y){return (x * y)/gcd(x, y);}int main(){fast;ll h = 1;//cin >> h;ll st = 1;while(h--){ll d1, d2;cin >> d1 >> d2;double x = sqrt(d1);double y = sqrt(d2) / sqrt(2);if(d1 == d2 || 2 * d1 == d2){cout << 4 << endl;}else if(2 * d1 < d2 || d1 > d2){cout << 0 << endl;}else{cout << 8 << endl;}}}