結果
| 問題 |
No.338 アンケート機能
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-13 15:02:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 735 ms |
| コンパイル使用メモリ | 69,356 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 04:50:01 |
| 合計ジャッジ時間 | 1,594 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 9 |
ソースコード
#include <iostream>
#include <math.h>
int main(){
int a,b;
std::cin>>a>>b;
int index=0;
while(1){
int a_=floor((a-0.5000000001)*index/100)-ceil((a+0.4999999999999)*index/100);
int b_=floor((b-0.5000000001)*index/100)-ceil((b+0.4999999999999)*index/100);
if(a_==-2&&b_==-2){
break;
}
index++;
}
std::cout<<index<<std::endl;
return 0;
}