結果
問題 | No.1337 Fair Otoshidama |
ユーザー |
|
提出日時 | 2021-01-15 21:51:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 335 bytes |
コンパイル時間 | 639 ms |
コンパイル使用メモリ | 66,168 KB |
最終ジャッジ日時 | 2025-01-17 19:10:27 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
#line 1 "main.cpp"#include <iostream>using namespace std;void solve() {int m = 0;for (int i = 0; i < 3; ++i) {int x;cin >> x;(m += x) %= 3;}cout << (m == 0 ? "Yes" : "No") << "\n";}int main() {cin.tie(nullptr);ios::sync_with_stdio(false);solve();return 0;}