# ICPC模擬予選2017 セッション ポポポポポポポ 見えてますか ## トーク欄 - 5000兆円欲しい - うーん - これコードブロック作れないの - 手元実行で提出だよね? ## J - やるだけ(これはまじ) ```cpp #include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b, a + b) { cout << a * b << endl; } } ``` ## K - やるだけっぽい ```cpp #include <bits/stdc++.h> using namespace std; int main(void){ int m; cin >> m; for(int i = 0;i < m;i++){ double a; cin >> a; cout << fixed << setprecision(10) << sqrt(2)*sqrt(a)/2 << endl; } } ``` ↑これほんま? あたえられるの辺だと思ってました(すいません)←わかるよ ## L やるだけ(それはそう) ```cpp #include <bits/stdc++.h> using namespace std; int main() { string a, b; while (true) { cin >> a; if (a == "#") return 0; cin >> b; cout << (a < b ? "Yes" : "No") << endl; } } ``` ## M - 問題がよくわからない - ↑そもそもそういうものらしい - 正解されることを意図していないことに注意すること.←ウケる - これ 何か予想してやってみないか - 思いっきり提出するコードを変えることになりそう - mod2 - 思いつかなし(終了) - - 素数かどうかみたいなのありそう ←グループの要素数同じなのでなくないか - そうだった😢 ```cpp #include <bits/stdc++.h> using namespace std; int main() { char c[101]; for (int i = 1; i <= 100; ++i) { if (i / 4 & 1) c[i] = 'B'; else c[i] = 'A'; } int n; while (cin >> n, n) { cout << "Set " << c[n] << endl; } } ``` これでなぜか一個目通ったんですよね なんと同一個ありません 聞かれたやつがちょうどよかった感じですかね? わからず なんか一個目はサンプルと同じみたいなのでそりゃ通るよねとなった 眠い
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.