結果
問題 |
No.685 Logical Operations
|
ユーザー |
![]() |
提出日時 | 2017-08-18 11:19:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 53,744 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-14 14:49:19 |
合計ジャッジ時間 | 6,890 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 TLE * 2 -- * 17 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; ll n; int main(){ cin>>n; ll res=0; for(ll i=0;i<=n;i++) for(ll j=i;j<=n;j++){ ll AND=i&j,XOR=i^j,OR=i|j; if(AND<XOR&&XOR<OR) res++; } cout<<res<<endl; }