結果
問題 | No.1027 U+1F4A0 |
ユーザー |
![]() |
提出日時 | 2024-05-03 17:56:17 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 842 bytes |
コンパイル時間 | 3,592 ms |
コンパイル使用メモリ | 271,444 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 21:12:12 |
合計ジャッジ時間 | 4,464 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#define _GLIBCXX_DEBUG#include <bits/stdc++.h>#include <atcoder/dsu>using namespace atcoder;using namespace std;typedef long long ll;#define rep(i,a,b) for(int i=a;i<b;i++)using vi = vector<int>;using vvi = vector<vi>;using li =vector<ll>;using lli=vector<li>;using si =vector<char>;using ssi =vector<si>;struct Edge {int to, cost;Edge(int to, int cost) : to(to), cost(cost) {}};//using mint = modint998244353;const long long INF = 1e18;const long long MOD=1e9+7;//bit全探索 rep(i,0,1<<(n-1)){rep(j,0,n-1)if(I&(1<<j))}//int a = s[0] - ‘0’;文字列から数字//int a=atoi(s.c_str());//“ABCDEFGHIJKLMNOPQRSTUVWXYZ"//printf("%.9f\n", ans);//printf("%.20llf\n",solve(N));int main() { ll r,d;cin>>r>>d;if(d>2*r)cout<<0;else if(d==2*r)cout<<4;else if(d<r) cout<<0;else if(d==r)cout<<4;else cout<<8;}