結果
問題 | No.1462 最弱WEAKER |
ユーザー | se1ka2 |
提出日時 | 2021-04-02 21:24:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 686 ms |
コンパイル使用メモリ | 63,104 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 18:10:09 |
合計ジャッジ時間 | 1,325 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; int main() { int n; cin >> n; int c = 0; while(n){ c += n % 3; n /= 3; } if(c % 2) cout << "NO" << endl; else cout << "YES" << endl; }