結果
問題 | No.1800 Random XOR |
ユーザー |
![]() |
提出日時 | 2022-01-07 23:11:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,613 bytes |
コンパイル時間 | 1,595 ms |
コンパイル使用メモリ | 166,532 KB |
実行使用メモリ | 16,968 KB |
最終ジャッジ日時 | 2024-11-14 09:12:37 |
合計ジャッジ時間 | 37,201 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 TLE * 1 |
other | WA * 5 TLE * 9 |
ソースコード
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef float fl; typedef bool bl; typedef string st; typedef pair<int,int> P; const int INF=100000000; const ll INFx=1000000000000; ll MOD=1000000007; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; string fi="01234567890123456789"; string al="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"; string AL="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"; #define rep(i,n) for(int i=0;i<(n);++i) #define YESNO(flag) if(flag){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;} #define yesno(flag) if(flag){cout<<"yes"<<endl;}else{cout<<"no"<<endl;} #define YesNo(flag) if(flag){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;} int main(){ ll n,m; cin>>n>>m; float sum=1/2; float j=1; for(int i=0;i<m;++i){ j*=2; } float all=j*n; float k=j/all; cout<<MOD*k; } /* +++++ ++ ++ +++ + /\ /\ ++ +++ ++ ++ / \ / \ ++ ++ ++ ++++++++++ +++ ++++ +++ +++++ +++++ / \ / \ ++ ++ ++ ++ ++ +++ ++++++ +++ ++ ++ ++ ++ ++ +++ ++ ++ ++ +++ +++ +++ +++ ++++++++++ ++++++++++ ++ +++ ++ ++++++++++ ++++++ ++++++ ++ ++ +++++ ++ ++ ++++ ++++ ++++++++ ++++++++ "Lets Enjoy!" ++++++++++ ++ ++ ++ ++ ++++++++++ Λ Λ / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ( ゚ー゚)< now rating【157】+55  ̄ ̄ \___________ 人 / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ( ゚ー゚)< #灰coderですがなにか  ̄ ̄ \___________ */