結果
| 問題 | No.3481 495 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-03 22:52:44 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 37,632 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-03 22:53:00 |
| 合計ジャッジ時間 | 1,091 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 7 WA * 8 |
ソースコード
#include <stdio.h>
int main() {
int num;
if (scanf("%d", &num) != 1) return 0;
// どんな桁数が来ても、各桁の「1つ」の数字だけを抜き出す
int a = (num / 100) % 10; // 100の位
int b = (num / 10) % 10; // 10の位
int c = num % 10; // 1の位
if (a + b == c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}