結果
問題 |
No.3181 find H
|
ユーザー |
![]() |
提出日時 | 2025-06-20 16:42:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 40,816 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 16:42:11 |
合計ジャッジ時間 | 2,444 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 51 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:25:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 25 | scanf("%lld%lld%lld", &r, &gx, &gy); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 3181.cc: No.3181 find H - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ /* typedef */ using ll = long long; /* global variables */ /* subroutines */ /* main */ int main() { ll r, gx, gy; scanf("%lld%lld%lld", &r, &gx, &gy); // https://manabitimes.jp/math/630 // OG:GH=1:2 ll hx = gx * 3, hy = gy * 3; printf("%lld %lld\n", hx, hy); return 0; }