結果
| 問題 |
No.1337 Fair Otoshidama
|
| コンテスト | |
| ユーザー |
ocvret_
|
| 提出日時 | 2021-01-16 00:36:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 407 bytes |
| コンパイル時間 | 1,548 ms |
| コンパイル使用メモリ | 165,652 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 19:02:09 |
| 合計ジャッジ時間 | 2,137 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 20 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:19:7: warning: 'k' is used uninitialized [-Wuninitialized]
19 | k += a;
| ~~^~~~
main.cpp:16:6: note: 'k' was declared here
16 | ll k;
| ^
ソースコード
#include<bits/stdc++.h>
// #include<atcoder/all>
using namespace std;
// using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
using P = pair<int,int>;
#define rep(i,n) for(ll i = 0;i < (ll)n;i++)
#define ALL(x) (x).begin(),(x).end()
#define MOD 1000000007
int main(){
ll k;
rep(i,3){
ll a;cin >> a;
k += a;
}
cout << (k%3 ? "Yes\n" : "No\n");
return 0;
}
ocvret_