結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2017-02-21 21:05:33 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 370 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-30 15:01:04 |
合計ジャッジ時間 | 50,117 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 9 TLE * 7 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:13:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%llu%llu",&l,&k); | ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ unsigned long long l; unsigned long long k; int r=0; int i; int n=0; char w; char q; char s[1000]; char t[1000]; scanf("%llu%llu",&l,&k); do{ l-=k*2; n++; r+=k; //printf("%d\n",l); }while(l>10&&l>0); printf("%d",r); return 0; }