結果
問題 |
No.773 コンテスト
|
ユーザー |
![]() |
提出日時 | 2019-03-27 23:57:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 605 ms |
コンパイル使用メモリ | 56,352 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 06:16:34 |
合計ジャッジ時間 | 1,452 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:13:13: warning: ‘ans’ may be used uninitialized in this function [-Wmaybe-uninitialized] 13 | cout<<3-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<<3-ans<<endl; }