結果
問題 |
No.773 コンテスト
|
ユーザー |
![]() |
提出日時 | 2019-03-27 23:55:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 922 ms |
コンパイル使用メモリ | 57,844 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 06:16:20 |
合計ジャッジ時間 | 1,579 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 16 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:13:11: warning: ‘ans’ may be used uninitialized in this function [-Wmaybe-uninitialized] 13 | cout<<ans<<endl; | ^~~
ソースコード
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(void){ int a,b,ans; cin>>a>>b; for(int i=a;i<b+1;i++){ if(i==23 || i==24 || i==25){ ans++; } } cout<<ans<<endl; }