結果
問題 | No.338 アンケート機能 |
ユーザー | aaaaaaiu |
提出日時 | 2019-08-14 19:40:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 1,944 ms |
コンパイル使用メモリ | 191,724 KB |
最終ジャッジ日時 | 2025-01-07 11:48:59 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a,b; cin>>a>>b; for (int i=1;i<=200;i++) for (int j=0;j<=i;j++) if ((100*j+i/2)/i==a&&(100*(i-j)+i/2)/i==b) { cout<<i<<endl; return 0; } return 0; }