結果
| 問題 | 
                            No.795 Restrictions!!!!!!!!!!!!!!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kiefer_von_maus
                         | 
                    
| 提出日時 | 2019-11-29 19:09:14 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 423 bytes | 
| コンパイル時間 | 2,341 ms | 
| コンパイル使用メモリ | 166,416 KB | 
| 実行使用メモリ | 13,952 KB | 
| 最終ジャッジ日時 | 2024-11-20 21:28:55 | 
| 合計ジャッジ時間 | 65,398 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 20 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
    long n, m;
	    cin >> n >> m;
	    int judge = 0;
	    for(int i = 0; i <= n; i++) {
	        for(int j = 0; j <= m; j++) {
	            if(i * 100 + j * 10 == (n - i) * 100 + (m - j) * 10) {
	                judge++;
	            }
	        }
	    }
	    if(judge != 0) {
	        cout << "Yes" << endl;
	    } else {
	        cout << "No" << endl;
	    }
}
            
            
            
        
            
kiefer_von_maus