結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2021-03-09 01:12:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 1,517 ms |
コンパイル使用メモリ | 167,532 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 15:19:51 |
合計ジャッジ時間 | 2,369 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 18 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:9:21: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized] 9 | cout << ans << endl; | ^~~ main.cpp:6:9: note: 'ans' was declared here 6 | int ans; | ^~~
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin >> A >> B; int ans; for(int i=A;i<B;i++){ if(i%3==0){ cout << ans << endl; } for(int j=i;j>0;j/=10){ if(j%10==3){ cout << i << endl; } } } return 0; }