結果
問題 | No.863 計算量 |
ユーザー |
|
提出日時 | 2020-04-10 16:51:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 1,821 ms |
コンパイル使用メモリ | 76,888 KB |
最終ジャッジ日時 | 2025-01-09 15:41:14 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
#include <iostream> #include <cmath> using lint = long long; void solve() { lint a, b; std::cin >> a >> b; std::cout << (std::abs(a * 40 - b) < std::abs(a * 1600 - b) ? 1 : 2) << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }