結果
| 問題 | No.3481 495 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-08 11:54:26 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 343µs | |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 1,795 ms |
| コンパイル使用メモリ | 332,020 KB |
| 実行使用メモリ | 10,032 KB |
| 最終ジャッジ日時 | 2026-09-08 11:54:54 |
| 合計ジャッジ時間 | 3,232 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
const int INF=1e9;
int main() {
cin.tie(nullptr),cout.tie(nullptr);
ios::sync_with_stdio(false);
int n;
cin >> n;
int a=n/100;
int b=(n/10)%10;
int c=(n%100)%10;
if(a+c==b){
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
}