結果
問題 | No.3037 トグルトグルトグル! |
ユーザー |
![]() |
提出日時 | 2025-02-28 21:35:51 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 475 ms / 2,000 ms |
コード長 | 163 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 24,448 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-07 08:46:57 |
合計ジャッジ時間 | 1,744 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld", &n); | ^~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>int main(){long long int n;scanf("%lld", &n);long long int ans = 0;for (; ans * ans <= n; ans++);printf("%lld\n", --ans);return 0;}