pida@pida_1024期末テスト終了!!!! #include <bits/stdc++.h> using namespace std; int main(){ int 疲労,睡眠欲; cin >> 疲労 >> 睡眠欲; string ans = "寝る" ; if(疲労==0&&睡眠欲==0){ ans = "精進"; } cout << ans << endl; return0; }午前4:21 · 2023年5月24日·162 件の表示1 件のリツイート6 件のいいね
Shin {^~^} shin@Shin_ppp·31分bool moena(int 疲労, int 睡眠欲) { bool mon = false; if (疲労 == 0 && 睡眠欲 > 10) { mon = true; } return mon; } if (mon) ans = "モンエナを飲んで精進";1132